Re: Newbie question: newline before \and in author environment
Hi 杨朝晖, Am Sonntag, 30. Oktober 2005 03:57 schrieb 杨朝晖: On 2005-10-30 2:20, Michael-E. Voges wrote: Am Freitag, 28. Oktober 2005 17:17 schrieb 杨朝晖: When writing an article in tex source, in the author block I would format the code this way: \author { Author1\\ Institute1 \and Author2\\ Institute2 } But in lyx I can't add linebreak (\\) before or after the \and command. That leads to latex compile error. Nor can I hit Enter, that will cut the author environment into segments (multiple author block in tex). So, It have to be like this in lyx (horizontally centered): Author\\ Institute1 \and Author2\\ Institute2 This looks ugly. And I think it is against WYSIWYM. Generally, is there a way in lyx that I can visually break text into lines without using linebreak(\\) and without terminating the current environment (by hit Enter)? Did you try Strg-Enter in Lyx? It gives you an newline within the current paragraph. I guess you are using some non-US keyboard on which Strg means the same as Ctrl on mine. right Ctrl-Enter produce the linebreak I metioned previously (that's the way I produce linebreaks, actually). A linebreak in lyx is equivalent to a '\\' in tex. So Ctrl-Enter around that \and command leads to wrong output dvi/pdf (not latex error,I made mistakes last time). You may try out the attachments to see what I mean. second way: Did you try to put \author { Author1\\ Institute1 \and Author2\\ Institute2 } in TeX-code inside Lyx by marking the text an hitting Strg-L? Doing this LaTeX will read that portion of text as pure LaTeX-code. Yes, this works. But looks even more ugly. Thanks anyway. yzhh what about the attached file? Micha-E. yzhh.lyx Description: application/lyx
Re: Newbie question: newline before \and in author environment
what about the attached file? Micha-E. Minipage is good if I'm not required to write it in the standard way (using \and). I end up with code in the attachment, not so good as the minipages. Best regards, yzhh #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \language german \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize a4paper \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language german \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Title Title \layout Author author1 \newline institute1 \begin_inset ERT status Open \layout Standard \backslash and \end_inset author2 \newline institute2 \the_end
Re: Newbie question: newline before \and in author environment
Hi 杨朝晖, Am Sonntag, 30. Oktober 2005 03:57 schrieb 杨朝晖: On 2005-10-30 2:20, Michael-E. Voges wrote: Am Freitag, 28. Oktober 2005 17:17 schrieb 杨朝晖: When writing an article in tex source, in the author block I would format the code this way: \author { Author1\\ Institute1 \and Author2\\ Institute2 } But in lyx I can't add linebreak (\\) before or after the \and command. That leads to latex compile error. Nor can I hit Enter, that will cut the author environment into segments (multiple author block in tex). So, It have to be like this in lyx (horizontally centered): Author\\ Institute1 \and Author2\\ Institute2 This looks ugly. And I think it is against WYSIWYM. Generally, is there a way in lyx that I can visually break text into lines without using linebreak(\\) and without terminating the current environment (by hit Enter)? Did you try Strg-Enter in Lyx? It gives you an newline within the current paragraph. I guess you are using some non-US keyboard on which Strg means the same as Ctrl on mine. right Ctrl-Enter produce the linebreak I metioned previously (that's the way I produce linebreaks, actually). A linebreak in lyx is equivalent to a '\\' in tex. So Ctrl-Enter around that \and command leads to wrong output dvi/pdf (not latex error,I made mistakes last time). You may try out the attachments to see what I mean. second way: Did you try to put \author { Author1\\ Institute1 \and Author2\\ Institute2 } in TeX-code inside Lyx by marking the text an hitting Strg-L? Doing this LaTeX will read that portion of text as pure LaTeX-code. Yes, this works. But looks even more ugly. Thanks anyway. yzhh what about the attached file? Micha-E. yzhh.lyx Description: application/lyx
Re: Newbie question: newline before \and in author environment
what about the attached file? Micha-E. Minipage is good if I'm not required to write it in the standard way (using \and). I end up with code in the attachment, not so good as the minipages. Best regards, yzhh #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \language german \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize a4paper \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language german \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Title Title \layout Author author1 \newline institute1 \begin_inset ERT status Open \layout Standard \backslash and \end_inset author2 \newline institute2 \the_end
Re: Newbie question: newline before \and in author environment
Hi 杨朝晖, Am Sonntag, 30. Oktober 2005 03:57 schrieb 杨朝晖: > On 2005-10-30 2:20, Michael-E. Voges wrote: > >Am Freitag, 28. Oktober 2005 17:17 schrieb 杨朝晖: > >>When writing an article in tex source, in the author block I would > >>format the code this way: > >>\author { > >>Author1\\ > >>Institute1 > >>\and > >>Author2\\ > >>Institute2 > >>} > >>But in lyx I can't add linebreak (\\) before or after the \and command. > >>That leads to latex compile error. Nor can I hit , that will cut > >>the author environment into segments (multiple author block in tex). So, > >>It have to be like this in lyx (horizontally centered): > >>Author\\ > >>Institute1 \and Author2\\ > >>Institute2 > >>This looks ugly. And I think it is against "WYSIWYM". > >>Generally, is there a way in lyx that I can visually break text into > >>lines without using linebreak(\\) and without terminating the current > >>environment (by hit )? > >Did you try - in Lyx? It gives you an newline within the > > current paragraph. > I guess you are using some non-US keyboard on which means the > same as on mine. right > - produce the linebreak I metioned previously (that's the > way I produce linebreaks, actually). A linebreak in lyx is equivalent to > a '\\' in tex. So - around that \and command leads to wrong > output dvi/pdf (not latex error,I made mistakes last time). > > You may try out the attachments to see what I mean. > > >second way: Did you try to put > > > >>\author { > >>Author1\\ > >>Institute1 > >>\and > >>Author2\\ > >>Institute2 > >>} > > > >in TeX-code inside Lyx by marking the text an hitting -? Doing > > this LaTeX will read that portion of text as pure LaTeX-code. > > Yes, this works. But looks even more ugly. > Thanks anyway. > > yzhh what about the attached file? Micha-E. yzhh.lyx Description: application/lyx
Re: Newbie question: newline before \and in author environment
>what about the attached file? > >Micha-E. > Minipage is good if I'm not required to write it in the "standard way" (using \and). I end up with code in the attachment, not so good as the minipages. Best regards, yzhh #LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \language german \inputencoding auto \fontscheme default \graphics default \paperfontsize default \spacing single \papersize a4paper \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language german \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Title Title \layout Author author1 \newline institute1 \begin_inset ERT status Open \layout Standard \backslash and \end_inset author2 \newline institute2 \the_end
Re: Newbie question: newline before \and in author environment
Hi 杨朝晖, Am Freitag, 28. Oktober 2005 17:17 schrieb 杨朝晖: When writing an article in tex source, in the author block I would format the code this way: \author { Author1\\ Institute1 \and Author2\\ Institute2 } But in lyx I can't add linebreak (\\) before or after the \and command. That leads to latex compile error. Nor can I hit Enter, that will cut the author environment into segments (multiple author block in tex). So, It have to be like this in lyx (horizontally centered): Author\\ Institute1 \and Author2\\ Institute2 This looks ugly. And I think it is against WYSIWYM. Generally, is there a way in lyx that I can visually break text into lines without using linebreak(\\) and without terminating the current environment (by hit Enter)? Did you try Strg-Enter in Lyx? It gives you an newline within the current paragraph. second way: Did you try to put \author { Author1\\ Institute1 \and Author2\\ Institute2 } in TeX-code inside Lyx by marking the text an hitting Strg-L? Doing this LaTeX will read that portion of text as pure LaTeX-code. Micha-E.
Re: Newbie question: newline before \and in author environment
On 2005-10-30 2:20, Michael-E. Voges wrote: Hi 杨朝晖, Am Freitag, 28. Oktober 2005 17:17 schrieb 杨朝晖: When writing an article in tex source, in the author block I would format the code this way: \author { Author1\\ Institute1 \and Author2\\ Institute2 } But in lyx I can't add linebreak (\\) before or after the \and command. That leads to latex compile error. Nor can I hit Enter, that will cut the author environment into segments (multiple author block in tex). So, It have to be like this in lyx (horizontally centered): Author\\ Institute1 \and Author2\\ Institute2 This looks ugly. And I think it is against WYSIWYM. Generally, is there a way in lyx that I can visually break text into lines without using linebreak(\\) and without terminating the current environment (by hit Enter)? Did you try Strg-Enter in Lyx? It gives you an newline within the current paragraph. I guess you are using some non-US keyboard on which Strg means the same as Ctrl on mine. Ctrl-Enter produce the linebreak I metioned previously (that's the way I produce linebreaks, actually). A linebreak in lyx is equivalent to a '\\' in tex. So Ctrl-Enter around that \and command leads to wrong output dvi/pdf (not latex error,I made mistakes last time). You may try out the attachments to see what I mean. second way: Did you try to put \author { Author1\\ Institute1 \and Author2\\ Institute2 } in TeX-code inside Lyx by marking the text an hitting Strg-L? Doing this LaTeX will read that portion of text as pure LaTeX-code. Yes, this works. But looks even more ugly. Micha-E. Thanks anyway. yzhh newfile3.lyx Description: application/lyx newfile1.lyx Description: application/lyx newfile2.lyx Description: application/lyx
Re: Newbie question: newline before \and in author environment
Hi 杨朝晖, Am Freitag, 28. Oktober 2005 17:17 schrieb 杨朝晖: When writing an article in tex source, in the author block I would format the code this way: \author { Author1\\ Institute1 \and Author2\\ Institute2 } But in lyx I can't add linebreak (\\) before or after the \and command. That leads to latex compile error. Nor can I hit Enter, that will cut the author environment into segments (multiple author block in tex). So, It have to be like this in lyx (horizontally centered): Author\\ Institute1 \and Author2\\ Institute2 This looks ugly. And I think it is against WYSIWYM. Generally, is there a way in lyx that I can visually break text into lines without using linebreak(\\) and without terminating the current environment (by hit Enter)? Did you try Strg-Enter in Lyx? It gives you an newline within the current paragraph. second way: Did you try to put \author { Author1\\ Institute1 \and Author2\\ Institute2 } in TeX-code inside Lyx by marking the text an hitting Strg-L? Doing this LaTeX will read that portion of text as pure LaTeX-code. Micha-E.
Re: Newbie question: newline before \and in author environment
On 2005-10-30 2:20, Michael-E. Voges wrote: Hi 杨朝晖, Am Freitag, 28. Oktober 2005 17:17 schrieb 杨朝晖: When writing an article in tex source, in the author block I would format the code this way: \author { Author1\\ Institute1 \and Author2\\ Institute2 } But in lyx I can't add linebreak (\\) before or after the \and command. That leads to latex compile error. Nor can I hit Enter, that will cut the author environment into segments (multiple author block in tex). So, It have to be like this in lyx (horizontally centered): Author\\ Institute1 \and Author2\\ Institute2 This looks ugly. And I think it is against WYSIWYM. Generally, is there a way in lyx that I can visually break text into lines without using linebreak(\\) and without terminating the current environment (by hit Enter)? Did you try Strg-Enter in Lyx? It gives you an newline within the current paragraph. I guess you are using some non-US keyboard on which Strg means the same as Ctrl on mine. Ctrl-Enter produce the linebreak I metioned previously (that's the way I produce linebreaks, actually). A linebreak in lyx is equivalent to a '\\' in tex. So Ctrl-Enter around that \and command leads to wrong output dvi/pdf (not latex error,I made mistakes last time). You may try out the attachments to see what I mean. second way: Did you try to put \author { Author1\\ Institute1 \and Author2\\ Institute2 } in TeX-code inside Lyx by marking the text an hitting Strg-L? Doing this LaTeX will read that portion of text as pure LaTeX-code. Yes, this works. But looks even more ugly. Micha-E. Thanks anyway. yzhh newfile3.lyx Description: application/lyx newfile1.lyx Description: application/lyx newfile2.lyx Description: application/lyx
Re: Newbie question: newline before \and in author environment
Hi 杨朝晖, Am Freitag, 28. Oktober 2005 17:17 schrieb 杨朝晖: > When writing an article in tex source, in the author block I would > format the code this way: > \author { > Author1\\ > Institute1 > \and > Author2\\ > Institute2 > } > But in lyx I can't add linebreak (\\) before or after the \and command. > That leads to latex compile error. Nor can I hit , that will cut > the author environment into segments (multiple author block in tex). So, > It have to be like this in lyx (horizontally centered): > Author\\ > Institute1 \and Author2\\ > Institute2 > This looks ugly. And I think it is against "WYSIWYM". > > Generally, is there a way in lyx that I can visually break text into > lines without using linebreak(\\) and without terminating the current > environment (by hit )? Did you try - in Lyx? It gives you an newline within the current paragraph. second way: Did you try to put > \author { > Author1\\ > Institute1 > \and > Author2\\ > Institute2 > } in TeX-code inside Lyx by marking the text an hitting -? Doing this LaTeX will read that portion of text as pure LaTeX-code. Micha-E.
Re: Newbie question: newline before \and in author environment
On 2005-10-30 2:20, Michael-E. Voges wrote: >Hi 杨朝晖, > >Am Freitag, 28. Oktober 2005 17:17 schrieb 杨朝晖: > > >>When writing an article in tex source, in the author block I would >>format the code this way: >>\author { >>Author1\\ >>Institute1 >>\and >>Author2\\ >>Institute2 >>} >>But in lyx I can't add linebreak (\\) before or after the \and command. >>That leads to latex compile error. Nor can I hit , that will cut >>the author environment into segments (multiple author block in tex). So, >>It have to be like this in lyx (horizontally centered): >>Author\\ >>Institute1 \and Author2\\ >>Institute2 >>This looks ugly. And I think it is against "WYSIWYM". >> >>Generally, is there a way in lyx that I can visually break text into >>lines without using linebreak(\\) and without terminating the current >>environment (by hit )? >> >> > >Did you try - in Lyx? It gives you an newline within the >current >paragraph. > > I guess you are using some non-US keyboard on which means the same as on mine. - produce the linebreak I metioned previously (that's the way I produce linebreaks, actually). A linebreak in lyx is equivalent to a '\\' in tex. So - around that \and command leads to wrong output dvi/pdf (not latex error,I made mistakes last time). You may try out the attachments to see what I mean. >second way: Did you try to put > > >>\author { >>Author1\\ >>Institute1 >>\and >>Author2\\ >>Institute2 >>} >> >> >in TeX-code inside Lyx by marking the text an hitting -? Doing this >LaTeX will read that portion of text as pure LaTeX-code. > > Yes, this works. But looks even more ugly. >Micha-E. > Thanks anyway. yzhh newfile3.lyx Description: application/lyx newfile1.lyx Description: application/lyx newfile2.lyx Description: application/lyx