section in put
I want to move title of section into left margin of page. Meanwhile, the first line of paragraph aligns with the title(not below title as usual), as shown on the following picture. I trid by putting section in put, but failed to compile. Anyone can help me with this?
MWE:
documentclass{article}
usepackage{picture}
begin{document}
some text
put(-1in,0){section{my section content}}first line of paragraph
end{document}

sectioning
add a comment |
I want to move title of section into left margin of page. Meanwhile, the first line of paragraph aligns with the title(not below title as usual), as shown on the following picture. I trid by putting section in put, but failed to compile. Anyone can help me with this?
MWE:
documentclass{article}
usepackage{picture}
begin{document}
some text
put(-1in,0){section{my section content}}first line of paragraph
end{document}

sectioning
1
I am not sure you can use units in the coordinates, and if you put the section in a minipage it works.documentclass{article} begin{document} some text noindentput(-4,0){begin{minipage}{textwidth}section{my section content} end{minipage}} first line of paragraph end{document}
– marmot
Feb 15 at 5:51
Thank you very much! It does work though I don't understand whyparboxcan not replaceminipagein my example. And as shown in my attached figure, "some text" and "fist line of..." should be in two lines. But as the effect ofput, they are in the same line. So I addparafter "some text", then fails to compile. Why?
– lyl
Feb 15 at 6:30
Maybedocumentclass{article} begin{document} some text reversemarginpar marginpar{section{my section content}} first line of paragraph end{document}?
– marmot
Feb 15 at 6:37
Yes, marginpar is a good idea. Yet it's difficult to control the horizontal position of section title. I love better your solution of minipage. Now I'm puzzled by failing work of "some textpar"
– lyl
Feb 15 at 6:52
add a comment |
I want to move title of section into left margin of page. Meanwhile, the first line of paragraph aligns with the title(not below title as usual), as shown on the following picture. I trid by putting section in put, but failed to compile. Anyone can help me with this?
MWE:
documentclass{article}
usepackage{picture}
begin{document}
some text
put(-1in,0){section{my section content}}first line of paragraph
end{document}

sectioning
I want to move title of section into left margin of page. Meanwhile, the first line of paragraph aligns with the title(not below title as usual), as shown on the following picture. I trid by putting section in put, but failed to compile. Anyone can help me with this?
MWE:
documentclass{article}
usepackage{picture}
begin{document}
some text
put(-1in,0){section{my section content}}first line of paragraph
end{document}

sectioning
sectioning
edited Feb 15 at 6:08
lyl
asked Feb 15 at 4:41
lyllyl
70638
70638
1
I am not sure you can use units in the coordinates, and if you put the section in a minipage it works.documentclass{article} begin{document} some text noindentput(-4,0){begin{minipage}{textwidth}section{my section content} end{minipage}} first line of paragraph end{document}
– marmot
Feb 15 at 5:51
Thank you very much! It does work though I don't understand whyparboxcan not replaceminipagein my example. And as shown in my attached figure, "some text" and "fist line of..." should be in two lines. But as the effect ofput, they are in the same line. So I addparafter "some text", then fails to compile. Why?
– lyl
Feb 15 at 6:30
Maybedocumentclass{article} begin{document} some text reversemarginpar marginpar{section{my section content}} first line of paragraph end{document}?
– marmot
Feb 15 at 6:37
Yes, marginpar is a good idea. Yet it's difficult to control the horizontal position of section title. I love better your solution of minipage. Now I'm puzzled by failing work of "some textpar"
– lyl
Feb 15 at 6:52
add a comment |
1
I am not sure you can use units in the coordinates, and if you put the section in a minipage it works.documentclass{article} begin{document} some text noindentput(-4,0){begin{minipage}{textwidth}section{my section content} end{minipage}} first line of paragraph end{document}
– marmot
Feb 15 at 5:51
Thank you very much! It does work though I don't understand whyparboxcan not replaceminipagein my example. And as shown in my attached figure, "some text" and "fist line of..." should be in two lines. But as the effect ofput, they are in the same line. So I addparafter "some text", then fails to compile. Why?
– lyl
Feb 15 at 6:30
Maybedocumentclass{article} begin{document} some text reversemarginpar marginpar{section{my section content}} first line of paragraph end{document}?
– marmot
Feb 15 at 6:37
Yes, marginpar is a good idea. Yet it's difficult to control the horizontal position of section title. I love better your solution of minipage. Now I'm puzzled by failing work of "some textpar"
– lyl
Feb 15 at 6:52
1
1
I am not sure you can use units in the coordinates, and if you put the section in a minipage it works.
documentclass{article} begin{document} some text noindentput(-4,0){begin{minipage}{textwidth}section{my section content} end{minipage}} first line of paragraph end{document}– marmot
Feb 15 at 5:51
I am not sure you can use units in the coordinates, and if you put the section in a minipage it works.
documentclass{article} begin{document} some text noindentput(-4,0){begin{minipage}{textwidth}section{my section content} end{minipage}} first line of paragraph end{document}– marmot
Feb 15 at 5:51
Thank you very much! It does work though I don't understand why
parbox can not replace minipage in my example. And as shown in my attached figure, "some text" and "fist line of..." should be in two lines. But as the effect of put, they are in the same line. So I add par after "some text", then fails to compile. Why?– lyl
Feb 15 at 6:30
Thank you very much! It does work though I don't understand why
parbox can not replace minipage in my example. And as shown in my attached figure, "some text" and "fist line of..." should be in two lines. But as the effect of put, they are in the same line. So I add par after "some text", then fails to compile. Why?– lyl
Feb 15 at 6:30
Maybe
documentclass{article} begin{document} some text reversemarginpar marginpar{section{my section content}} first line of paragraph end{document}?– marmot
Feb 15 at 6:37
Maybe
documentclass{article} begin{document} some text reversemarginpar marginpar{section{my section content}} first line of paragraph end{document}?– marmot
Feb 15 at 6:37
Yes, marginpar is a good idea. Yet it's difficult to control the horizontal position of section title. I love better your solution of minipage. Now I'm puzzled by failing work of "some textpar"
– lyl
Feb 15 at 6:52
Yes, marginpar is a good idea. Yet it's difficult to control the horizontal position of section title. I love better your solution of minipage. Now I'm puzzled by failing work of "some textpar"
– lyl
Feb 15 at 6:52
add a comment |
1 Answer
1
active
oldest
votes
I would recommend using titlesec's leftmargin pre-defined format as it was designed for this purpose (see section 3.1 of titlesec docs). Example:
documentclass{article}
usepackage{titlesec}
titleformat{section}[leftmargin]
{normalfontbfseriesfilleft}
{thesection.}{.5em}{}
titlespacing{section}
{4pc}{1.5ex plus .1ex minus .2ex}{1pc}
begin{document}
section{my section content}
First line of paragraph
end{document}
Output:

Edit - A second example with an even wider margin and a 'hang' (following question in comment):
documentclass{article}
usepackage{titlesec}
usepackage{lipsum} % For filler text
titleformat{section}[leftmargin]
{normalfontbfseriesfilright}% Now right justfy
% 'hang' hack - put some negative space before section number
% Now with an adjustment for section numbers with double figures
{ifnumthesection>9relaxhspace{-1.56em}elsehspace{-1.1em}fithesection.}{.3em}{}% Adjust values to your tastes
titlespacing{section}%
{4.5pc}% Increase this value to have more words per line in the title
{1.5ex plus .1ex minus .2ex}%
{0.5pc}% Space between title and section text (adjust as see fit)
begin{document}
section{First section} % Example 2
lipsum[1][1-5]
% Bump up the section number so we can test things
setcounter{section}{9}
section{The tenth section}
lipsum[1][1-5]
end{document}
Output:

Note that if you sections have very little text, the titles might overlap. If this happens I would suggest just adding a little extra vertical space after the text of the first section with e.g. vpsace{1cm}.
The option [leftmargin] can contain only a word per line. ButI want more than one word each line of section title and all the text of title is in hang style, as shown on my figure. Can titlesec achieve this?
– lyl
Feb 15 at 7:28
For the first, definitely - the first argument of thetitlespacingcommand controls how many words you can get on 'each line'. There doesn't seem to be a native way of getting hang + leftmargin, but a simple hack should suffice - i'll edit my answer.
– Pippip19
Feb 15 at 7:50
This works all well when the section number is less than 10. When the number(two digits) is bigger than 9, the typeset of number will extrude into the title. Then the hspace has to be adjusted again. Is there a common way(without many times to try a new length) to solve this problem? Thank you.
– lyl
Feb 15 at 10:13
As I mentioned in my previous comment, I don't think titlesec provides an easy way to combine left margin with hang (I suggest you have a look through the package documentation in case you spot anything that could be useful). But I know what I would do - use anifstatement do add a bit more hspace if the section number is greater than 9 :).
– Pippip19
Feb 15 at 12:45
1
if version would be highly appreciated! I've accepted your answer.
– lyl
Feb 15 at 14:21
|
show 2 more comments
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f474968%2fsection-in-put%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I would recommend using titlesec's leftmargin pre-defined format as it was designed for this purpose (see section 3.1 of titlesec docs). Example:
documentclass{article}
usepackage{titlesec}
titleformat{section}[leftmargin]
{normalfontbfseriesfilleft}
{thesection.}{.5em}{}
titlespacing{section}
{4pc}{1.5ex plus .1ex minus .2ex}{1pc}
begin{document}
section{my section content}
First line of paragraph
end{document}
Output:

Edit - A second example with an even wider margin and a 'hang' (following question in comment):
documentclass{article}
usepackage{titlesec}
usepackage{lipsum} % For filler text
titleformat{section}[leftmargin]
{normalfontbfseriesfilright}% Now right justfy
% 'hang' hack - put some negative space before section number
% Now with an adjustment for section numbers with double figures
{ifnumthesection>9relaxhspace{-1.56em}elsehspace{-1.1em}fithesection.}{.3em}{}% Adjust values to your tastes
titlespacing{section}%
{4.5pc}% Increase this value to have more words per line in the title
{1.5ex plus .1ex minus .2ex}%
{0.5pc}% Space between title and section text (adjust as see fit)
begin{document}
section{First section} % Example 2
lipsum[1][1-5]
% Bump up the section number so we can test things
setcounter{section}{9}
section{The tenth section}
lipsum[1][1-5]
end{document}
Output:

Note that if you sections have very little text, the titles might overlap. If this happens I would suggest just adding a little extra vertical space after the text of the first section with e.g. vpsace{1cm}.
The option [leftmargin] can contain only a word per line. ButI want more than one word each line of section title and all the text of title is in hang style, as shown on my figure. Can titlesec achieve this?
– lyl
Feb 15 at 7:28
For the first, definitely - the first argument of thetitlespacingcommand controls how many words you can get on 'each line'. There doesn't seem to be a native way of getting hang + leftmargin, but a simple hack should suffice - i'll edit my answer.
– Pippip19
Feb 15 at 7:50
This works all well when the section number is less than 10. When the number(two digits) is bigger than 9, the typeset of number will extrude into the title. Then the hspace has to be adjusted again. Is there a common way(without many times to try a new length) to solve this problem? Thank you.
– lyl
Feb 15 at 10:13
As I mentioned in my previous comment, I don't think titlesec provides an easy way to combine left margin with hang (I suggest you have a look through the package documentation in case you spot anything that could be useful). But I know what I would do - use anifstatement do add a bit more hspace if the section number is greater than 9 :).
– Pippip19
Feb 15 at 12:45
1
if version would be highly appreciated! I've accepted your answer.
– lyl
Feb 15 at 14:21
|
show 2 more comments
I would recommend using titlesec's leftmargin pre-defined format as it was designed for this purpose (see section 3.1 of titlesec docs). Example:
documentclass{article}
usepackage{titlesec}
titleformat{section}[leftmargin]
{normalfontbfseriesfilleft}
{thesection.}{.5em}{}
titlespacing{section}
{4pc}{1.5ex plus .1ex minus .2ex}{1pc}
begin{document}
section{my section content}
First line of paragraph
end{document}
Output:

Edit - A second example with an even wider margin and a 'hang' (following question in comment):
documentclass{article}
usepackage{titlesec}
usepackage{lipsum} % For filler text
titleformat{section}[leftmargin]
{normalfontbfseriesfilright}% Now right justfy
% 'hang' hack - put some negative space before section number
% Now with an adjustment for section numbers with double figures
{ifnumthesection>9relaxhspace{-1.56em}elsehspace{-1.1em}fithesection.}{.3em}{}% Adjust values to your tastes
titlespacing{section}%
{4.5pc}% Increase this value to have more words per line in the title
{1.5ex plus .1ex minus .2ex}%
{0.5pc}% Space between title and section text (adjust as see fit)
begin{document}
section{First section} % Example 2
lipsum[1][1-5]
% Bump up the section number so we can test things
setcounter{section}{9}
section{The tenth section}
lipsum[1][1-5]
end{document}
Output:

Note that if you sections have very little text, the titles might overlap. If this happens I would suggest just adding a little extra vertical space after the text of the first section with e.g. vpsace{1cm}.
The option [leftmargin] can contain only a word per line. ButI want more than one word each line of section title and all the text of title is in hang style, as shown on my figure. Can titlesec achieve this?
– lyl
Feb 15 at 7:28
For the first, definitely - the first argument of thetitlespacingcommand controls how many words you can get on 'each line'. There doesn't seem to be a native way of getting hang + leftmargin, but a simple hack should suffice - i'll edit my answer.
– Pippip19
Feb 15 at 7:50
This works all well when the section number is less than 10. When the number(two digits) is bigger than 9, the typeset of number will extrude into the title. Then the hspace has to be adjusted again. Is there a common way(without many times to try a new length) to solve this problem? Thank you.
– lyl
Feb 15 at 10:13
As I mentioned in my previous comment, I don't think titlesec provides an easy way to combine left margin with hang (I suggest you have a look through the package documentation in case you spot anything that could be useful). But I know what I would do - use anifstatement do add a bit more hspace if the section number is greater than 9 :).
– Pippip19
Feb 15 at 12:45
1
if version would be highly appreciated! I've accepted your answer.
– lyl
Feb 15 at 14:21
|
show 2 more comments
I would recommend using titlesec's leftmargin pre-defined format as it was designed for this purpose (see section 3.1 of titlesec docs). Example:
documentclass{article}
usepackage{titlesec}
titleformat{section}[leftmargin]
{normalfontbfseriesfilleft}
{thesection.}{.5em}{}
titlespacing{section}
{4pc}{1.5ex plus .1ex minus .2ex}{1pc}
begin{document}
section{my section content}
First line of paragraph
end{document}
Output:

Edit - A second example with an even wider margin and a 'hang' (following question in comment):
documentclass{article}
usepackage{titlesec}
usepackage{lipsum} % For filler text
titleformat{section}[leftmargin]
{normalfontbfseriesfilright}% Now right justfy
% 'hang' hack - put some negative space before section number
% Now with an adjustment for section numbers with double figures
{ifnumthesection>9relaxhspace{-1.56em}elsehspace{-1.1em}fithesection.}{.3em}{}% Adjust values to your tastes
titlespacing{section}%
{4.5pc}% Increase this value to have more words per line in the title
{1.5ex plus .1ex minus .2ex}%
{0.5pc}% Space between title and section text (adjust as see fit)
begin{document}
section{First section} % Example 2
lipsum[1][1-5]
% Bump up the section number so we can test things
setcounter{section}{9}
section{The tenth section}
lipsum[1][1-5]
end{document}
Output:

Note that if you sections have very little text, the titles might overlap. If this happens I would suggest just adding a little extra vertical space after the text of the first section with e.g. vpsace{1cm}.
I would recommend using titlesec's leftmargin pre-defined format as it was designed for this purpose (see section 3.1 of titlesec docs). Example:
documentclass{article}
usepackage{titlesec}
titleformat{section}[leftmargin]
{normalfontbfseriesfilleft}
{thesection.}{.5em}{}
titlespacing{section}
{4pc}{1.5ex plus .1ex minus .2ex}{1pc}
begin{document}
section{my section content}
First line of paragraph
end{document}
Output:

Edit - A second example with an even wider margin and a 'hang' (following question in comment):
documentclass{article}
usepackage{titlesec}
usepackage{lipsum} % For filler text
titleformat{section}[leftmargin]
{normalfontbfseriesfilright}% Now right justfy
% 'hang' hack - put some negative space before section number
% Now with an adjustment for section numbers with double figures
{ifnumthesection>9relaxhspace{-1.56em}elsehspace{-1.1em}fithesection.}{.3em}{}% Adjust values to your tastes
titlespacing{section}%
{4.5pc}% Increase this value to have more words per line in the title
{1.5ex plus .1ex minus .2ex}%
{0.5pc}% Space between title and section text (adjust as see fit)
begin{document}
section{First section} % Example 2
lipsum[1][1-5]
% Bump up the section number so we can test things
setcounter{section}{9}
section{The tenth section}
lipsum[1][1-5]
end{document}
Output:

Note that if you sections have very little text, the titles might overlap. If this happens I would suggest just adding a little extra vertical space after the text of the first section with e.g. vpsace{1cm}.
edited Feb 15 at 14:34
answered Feb 15 at 6:37
Pippip19Pippip19
1,6438
1,6438
The option [leftmargin] can contain only a word per line. ButI want more than one word each line of section title and all the text of title is in hang style, as shown on my figure. Can titlesec achieve this?
– lyl
Feb 15 at 7:28
For the first, definitely - the first argument of thetitlespacingcommand controls how many words you can get on 'each line'. There doesn't seem to be a native way of getting hang + leftmargin, but a simple hack should suffice - i'll edit my answer.
– Pippip19
Feb 15 at 7:50
This works all well when the section number is less than 10. When the number(two digits) is bigger than 9, the typeset of number will extrude into the title. Then the hspace has to be adjusted again. Is there a common way(without many times to try a new length) to solve this problem? Thank you.
– lyl
Feb 15 at 10:13
As I mentioned in my previous comment, I don't think titlesec provides an easy way to combine left margin with hang (I suggest you have a look through the package documentation in case you spot anything that could be useful). But I know what I would do - use anifstatement do add a bit more hspace if the section number is greater than 9 :).
– Pippip19
Feb 15 at 12:45
1
if version would be highly appreciated! I've accepted your answer.
– lyl
Feb 15 at 14:21
|
show 2 more comments
The option [leftmargin] can contain only a word per line. ButI want more than one word each line of section title and all the text of title is in hang style, as shown on my figure. Can titlesec achieve this?
– lyl
Feb 15 at 7:28
For the first, definitely - the first argument of thetitlespacingcommand controls how many words you can get on 'each line'. There doesn't seem to be a native way of getting hang + leftmargin, but a simple hack should suffice - i'll edit my answer.
– Pippip19
Feb 15 at 7:50
This works all well when the section number is less than 10. When the number(two digits) is bigger than 9, the typeset of number will extrude into the title. Then the hspace has to be adjusted again. Is there a common way(without many times to try a new length) to solve this problem? Thank you.
– lyl
Feb 15 at 10:13
As I mentioned in my previous comment, I don't think titlesec provides an easy way to combine left margin with hang (I suggest you have a look through the package documentation in case you spot anything that could be useful). But I know what I would do - use anifstatement do add a bit more hspace if the section number is greater than 9 :).
– Pippip19
Feb 15 at 12:45
1
if version would be highly appreciated! I've accepted your answer.
– lyl
Feb 15 at 14:21
The option [leftmargin] can contain only a word per line. ButI want more than one word each line of section title and all the text of title is in hang style, as shown on my figure. Can titlesec achieve this?
– lyl
Feb 15 at 7:28
The option [leftmargin] can contain only a word per line. ButI want more than one word each line of section title and all the text of title is in hang style, as shown on my figure. Can titlesec achieve this?
– lyl
Feb 15 at 7:28
For the first, definitely - the first argument of the
titlespacing command controls how many words you can get on 'each line'. There doesn't seem to be a native way of getting hang + leftmargin, but a simple hack should suffice - i'll edit my answer.– Pippip19
Feb 15 at 7:50
For the first, definitely - the first argument of the
titlespacing command controls how many words you can get on 'each line'. There doesn't seem to be a native way of getting hang + leftmargin, but a simple hack should suffice - i'll edit my answer.– Pippip19
Feb 15 at 7:50
This works all well when the section number is less than 10. When the number(two digits) is bigger than 9, the typeset of number will extrude into the title. Then the hspace has to be adjusted again. Is there a common way(without many times to try a new length) to solve this problem? Thank you.
– lyl
Feb 15 at 10:13
This works all well when the section number is less than 10. When the number(two digits) is bigger than 9, the typeset of number will extrude into the title. Then the hspace has to be adjusted again. Is there a common way(without many times to try a new length) to solve this problem? Thank you.
– lyl
Feb 15 at 10:13
As I mentioned in my previous comment, I don't think titlesec provides an easy way to combine left margin with hang (I suggest you have a look through the package documentation in case you spot anything that could be useful). But I know what I would do - use an
if statement do add a bit more hspace if the section number is greater than 9 :).– Pippip19
Feb 15 at 12:45
As I mentioned in my previous comment, I don't think titlesec provides an easy way to combine left margin with hang (I suggest you have a look through the package documentation in case you spot anything that could be useful). But I know what I would do - use an
if statement do add a bit more hspace if the section number is greater than 9 :).– Pippip19
Feb 15 at 12:45
1
1
if version would be highly appreciated! I've accepted your answer.
– lyl
Feb 15 at 14:21
if version would be highly appreciated! I've accepted your answer.
– lyl
Feb 15 at 14:21
|
show 2 more comments
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f474968%2fsection-in-put%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
I am not sure you can use units in the coordinates, and if you put the section in a minipage it works.
documentclass{article} begin{document} some text noindentput(-4,0){begin{minipage}{textwidth}section{my section content} end{minipage}} first line of paragraph end{document}– marmot
Feb 15 at 5:51
Thank you very much! It does work though I don't understand why
parboxcan not replaceminipagein my example. And as shown in my attached figure, "some text" and "fist line of..." should be in two lines. But as the effect ofput, they are in the same line. So I addparafter "some text", then fails to compile. Why?– lyl
Feb 15 at 6:30
Maybe
documentclass{article} begin{document} some text reversemarginpar marginpar{section{my section content}} first line of paragraph end{document}?– marmot
Feb 15 at 6:37
Yes, marginpar is a good idea. Yet it's difficult to control the horizontal position of section title. I love better your solution of minipage. Now I'm puzzled by failing work of "some textpar"
– lyl
Feb 15 at 6:52