Re: Need Help Using LyX
Hi! Jacob and Richard, thank you very much for you answers! I just found the time to experiment a bit with LyX. I will try to answer each of you in this mail. @Jacob: Also, if you send a minimal example, it will make it easier to help you. I have tried to do that. 2) The font of all entries in the table of contents should be identical. At the moment, the chapter- and the section titles have different font families in the table of content, and changing it manually only changes the chapter-titles in the ToC, not the section-titles. This can be done by redefining the chapter headings, and specifying the font in the redefinitions. To start figuring out how to do that, open your document template and search for where these are given. Then, start changing things until you get what you want :) I do not find anything about this in the template I use. I guess they are defined in the book.class? 3) The font of te chapter numbers should also be identical, i.e. 12p and non-fat. Use the same method as 2). Same as above. That is because the thesis template is based on book, which has three parts, frontmatter, mainmatter, and endmatter. By default, I think frontmatter uses lowercase roman numbering. You can suppress the page number with (in ERT) \thispagestyle{empty} For more on numbering, see the wiki: http://wiki.lyx.org/FAQ/Numbering The ERT also supresses also that the ToC is shown at all. I guess there's a reason why it is called evil. Reasonably easy if you have invested enough time in understanding things, but not nearly as easy as I (and likely many others) wish it were. Someday, I hope we will have a nice graphical editor that we can use to create new document templates (as soon as somebody decides to write one...not necessarily part of LyX), but right now the process of creating or modifying one has a bit of a learning curve. That would be very nice. For a newby like me, it would be nice if it would be a bit easier to distinguish between LaTeX- and LyX - issues. @Richard: These are all LaTeX issues. All of these things are set by the document class and are not really designed to be customizable. You can change them, but it means learning some LaTeX and doing some work in the preamble. Thanks for the clarification. I have no clue about LaTeX as I have started using LyX. From my perspective it is indistinguishable if I have a LaTeX-issue or an LyX-issue. For what it's worth, I'd suggest you use the basic book class. It's more easily customizable. What follows is for that. Thanks for the suggestion, I've tried just that. The only issue is that this does not give me a PDF-bookmarked ToC, but I will figure out how to do that later. 1) The table of contents should not have a title (i.e. Table of contents) \renewcommand\contents{} This does not work. I have experimented a bit. The command given above yields a LaTeX Error: \contents undefinded if I try to compile the document. I'm unable to overcome that issue. Even using renewcommand\tableofcontens does not work, this yields just an empty site instead of a ToC. Conclusion: I do now not enough about LaTeX to mess around with this. 2) \newcommand*\l@chapter[2]{% \ifnum \c@tocdepth \m@ne \addpenalty{-\@highpenalty}% \vskip 1.0em \@plus\p@ \setlength\@tempdima{1.5em}% \begingroup \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth \leavevmode \bfseries \advance\leftskip\@tempdima \hskip -\leftskip #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par \penalty\@highpenalty \endgroup \fi} If you want to change them, you can copy them to your premable, change it to \renewcommand, and do whatever you wish. I've tried that. I'm not able to figure out what all these commands mean. Is there a list somewhere? Or some sort of introduction? I assume you mean the page (seite) with the TOC. In any event, I'm not sure what to do about this. Maybe someone else would know. Sorry, yes, I meant page. I figure that is part of the Thesis-template, if I learn enough about LaTeX to change that this will be a chinch. 5) There shouldnt be any page breaks, neither after the Toc nor before chapters. So perhaps something like: \renewcommand\chapter{\vspace*{2em} \global\@topnum\z@ \@afterindentfalse \secdef\@chapter\@schapter} This has actually worked out-of-the-box. Thank you very much! I figure I will have to learn a lot about LaTeX. A quick search revealed this LaTeX-Introduction: tobi.oetiker.ch/lshort/lshort.pdf I guess there are many more. Any recommendations? Greetings! Ph. Minimal.lyx Description: application/lyx
Re: Need Help Using LyX
Hi! Jacob and Richard, thank you very much for you answers! I just found the time to experiment a bit with LyX. I will try to answer each of you in this mail. @Jacob: Also, if you send a minimal example, it will make it easier to help you. I have tried to do that. 2) The font of all entries in the table of contents should be identical. At the moment, the chapter- and the section titles have different font families in the table of content, and changing it manually only changes the chapter-titles in the ToC, not the section-titles. This can be done by redefining the chapter headings, and specifying the font in the redefinitions. To start figuring out how to do that, open your document template and search for where these are given. Then, start changing things until you get what you want :) I do not find anything about this in the template I use. I guess they are defined in the book.class? 3) The font of te chapter numbers should also be identical, i.e. 12p and non-fat. Use the same method as 2). Same as above. That is because the thesis template is based on book, which has three parts, frontmatter, mainmatter, and endmatter. By default, I think frontmatter uses lowercase roman numbering. You can suppress the page number with (in ERT) \thispagestyle{empty} For more on numbering, see the wiki: http://wiki.lyx.org/FAQ/Numbering The ERT also supresses also that the ToC is shown at all. I guess there's a reason why it is called evil. Reasonably easy if you have invested enough time in understanding things, but not nearly as easy as I (and likely many others) wish it were. Someday, I hope we will have a nice graphical editor that we can use to create new document templates (as soon as somebody decides to write one...not necessarily part of LyX), but right now the process of creating or modifying one has a bit of a learning curve. That would be very nice. For a newby like me, it would be nice if it would be a bit easier to distinguish between LaTeX- and LyX - issues. @Richard: These are all LaTeX issues. All of these things are set by the document class and are not really designed to be customizable. You can change them, but it means learning some LaTeX and doing some work in the preamble. Thanks for the clarification. I have no clue about LaTeX as I have started using LyX. From my perspective it is indistinguishable if I have a LaTeX-issue or an LyX-issue. For what it's worth, I'd suggest you use the basic book class. It's more easily customizable. What follows is for that. Thanks for the suggestion, I've tried just that. The only issue is that this does not give me a PDF-bookmarked ToC, but I will figure out how to do that later. 1) The table of contents should not have a title (i.e. Table of contents) \renewcommand\contents{} This does not work. I have experimented a bit. The command given above yields a LaTeX Error: \contents undefinded if I try to compile the document. I'm unable to overcome that issue. Even using renewcommand\tableofcontens does not work, this yields just an empty site instead of a ToC. Conclusion: I do now not enough about LaTeX to mess around with this. 2) \newcommand*\l@chapter[2]{% \ifnum \c@tocdepth \m@ne \addpenalty{-\@highpenalty}% \vskip 1.0em \@plus\p@ \setlength\@tempdima{1.5em}% \begingroup \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth \leavevmode \bfseries \advance\leftskip\@tempdima \hskip -\leftskip #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par \penalty\@highpenalty \endgroup \fi} If you want to change them, you can copy them to your premable, change it to \renewcommand, and do whatever you wish. I've tried that. I'm not able to figure out what all these commands mean. Is there a list somewhere? Or some sort of introduction? I assume you mean the page (seite) with the TOC. In any event, I'm not sure what to do about this. Maybe someone else would know. Sorry, yes, I meant page. I figure that is part of the Thesis-template, if I learn enough about LaTeX to change that this will be a chinch. 5) There shouldnt be any page breaks, neither after the Toc nor before chapters. So perhaps something like: \renewcommand\chapter{\vspace*{2em} \global\@topnum\z@ \@afterindentfalse \secdef\@chapter\@schapter} This has actually worked out-of-the-box. Thank you very much! I figure I will have to learn a lot about LaTeX. A quick search revealed this LaTeX-Introduction: tobi.oetiker.ch/lshort/lshort.pdf I guess there are many more. Any recommendations? Greetings! Ph. Minimal.lyx Description: application/lyx
Re: Need Help Using LyX
Hi! Jacob and Richard, thank you very much for you answers! I just found the time to experiment a bit with LyX. I will try to answer each of you in this mail. @Jacob: > Also, if you send a minimal example, it will make it easier to help you. I have tried to do that. >> 2) The font of all entries in the table of contents should be >> identical. At the moment, the chapter- and the section titles have >> different font families in the table of content, and changing it >> manually only changes the chapter-titles in the ToC, not the >> section-titles. >> > This can be done by redefining the chapter headings, and specifying the font > in the redefinitions. To start figuring out how to do that, open your > document template and search for where these are given. Then, start changing > things until you get what you want :) I do not find anything about this in the template I use. I guess they are defined in the book.class? >> 3) The font of te chapter numbers should also be identical, i.e. 12p >> and non-fat. > > > Use the same method as 2). Same as above. > > That is because the thesis template is based on book, which has three parts, > frontmatter, mainmatter, and endmatter. By default, I think frontmatter uses > lowercase roman numbering. You can suppress the page number with (in ERT) > \thispagestyle{empty} For more on numbering, see the wiki: > http://wiki.lyx.org/FAQ/Numbering The ERT also supresses also that the ToC is shown at all. I guess there's a reason why it is called evil. > Reasonably easy if you have invested enough time in understanding things, > but not nearly as easy as I (and likely many others) wish it were. Someday, > I hope we will have a nice graphical editor that we can use to create new > document templates (as soon as somebody decides to write one...not > necessarily part of LyX), but right now the process of creating or modifying > one has a bit of a learning curve. That would be very nice. For a newby like me, it would be nice if it would be a bit easier to distinguish between LaTeX- and LyX - issues. @Richard: > These are all LaTeX issues. All of these things are set by the document > class and are not really designed to be customizable. You can change them, > but it means learning some LaTeX and doing some work in the preamble. Thanks for the clarification. I have no clue about LaTeX as I have started using LyX. From my perspective it is indistinguishable if I have a LaTeX-issue or an LyX-issue. > For what it's worth, I'd suggest you use the basic book class. It's more > easily customizable. What follows is for that. Thanks for the suggestion, I've tried just that. The only issue is that this does not give me a PDF-bookmarked ToC, but I will figure out how to do that later. >> 1) The table of contents should not have a title (i.e. "Table of >> contents") > > > \renewcommand\contents{} This does not work. I have experimented a bit. The command given above yields a "LaTeX Error: \contents undefinded" if I try to compile the document. I'm unable to overcome that issue. Even using "renewcommand\tableofcontens" does not work, this yields just an empty site instead of a ToC. Conclusion: I do now not enough about LaTeX to mess around with this. > >> 2) > > \newcommand*\l@chapter[2]{% > \ifnum \c@tocdepth >\m@ne > \addpenalty{-\@highpenalty}% > \vskip 1.0em \@plus\p@ > \setlength\@tempdima{1.5em}% > \begingroup > \parindent \z@ \rightskip \@pnumwidth > \parfillskip -\@pnumwidth > \leavevmode \bfseries > \advance\leftskip\@tempdima > \hskip -\leftskip > #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par > \penalty\@highpenalty > \endgroup > \fi} > > If you want to change them, you can copy them to your premable, change it to > "\renewcommand", and do whatever you wish. I've tried that. I'm not able to figure out what all these commands mean. Is there a list somewhere? Or some sort of introduction? > I assume you mean the page (seite) with the TOC. In any event, I'm not sure > what to do about this. Maybe someone else would know. Sorry, yes, I meant page. I figure that is part of the Thesis-template, if I learn enough about LaTeX to change that this will be a chinch. >> 5) There shouldnt be any page breaks, neither after the Toc nor before >> chapters. > So perhaps something like: > > \renewcommand\chapter{\vspace*{2em} > \global\@topnum\z@ > \@afterindentfalse > \secdef\@chapter\@schapter} This has actually worked out-of-the-box. Thank you very much! I figure I will have to learn a lot about LaTeX. A quick search revealed this LaTeX-Introduction: tobi.oetiker.ch/lshort/lshort.pdf I guess there are many more. Any recommendations? Greetings! Ph. Minimal.lyx Description: application/lyx
Re: Need Help Using LyX
On 08/01/2014 07:44 AM, Philipp Gröne wrote: Hi there! I need some assistance using LyX. I want to make a list of pictures. Each of this pictures has either a chapter number (1) or a section number (1.1). I chose the thesis-template shiped with LyX to achieve this, mainly because it provides chapters, sections and a table of contents. It looks mostly okay, but I still need to change the following things, listed in no particular order: These are all LaTeX issues. All of these things are set by the document class and are not really designed to be customizable. You can change them, but it means learning some LaTeX and doing some work in the preamble. For what it's worth, I'd suggest you use the basic book class. It's more easily customizable. What follows is for that. 1) The table of contents should not have a title (i.e. Table of contents) \renewcommand\contents{} 2) The font of all entries in the table of contents should be identical. At the moment, the chapter- and the section titles have different font families in the table of content, and changing it manually only changes the chapter-titles in the ToC, not the section-titles. This is probably done most easily using the titletoc or titlesec package, but the TOC entries are set using a bunch of macros l@chapter, l@section, etc, that are defined in the book.cls file, e.g.: \newcommand*\l@chapter[2]{% \ifnum \c@tocdepth \m@ne \addpenalty{-\@highpenalty}% \vskip 1.0em \@plus\p@ \setlength\@tempdima{1.5em}% \begingroup \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth \leavevmode \bfseries \advance\leftskip\@tempdima \hskip -\leftskip #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par \penalty\@highpenalty \endgroup \fi} If you want to change them, you can copy them to your premable, change it to \renewcommand, and do whatever you wish. 3) The font of the chapter numbers should also be identical, i.e. 12p and non-fat. Same. 4) The site with the ToC should have no page number. Currently it is labeled i. I assume you mean the page (seite) with the TOC. In any event, I'm not sure what to do about this. Maybe someone else would know. 5) There shouldnt be any page breaks, neither after the Toc nor before chapters. The command in book.cls is: \newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi \thispagestyle{plain}% \global\@topnum\z@ \@afterindentfalse \secdef\@chapter\@schapter} The first bit is what causes the page break, so you can remove it. This probably will not leave enough space above the chapter title, though, so you'll have to add something to do that. And you probably don't need the plain page style now. So perhaps something like: \renewcommand\chapter{\vspace*{2em} \global\@topnum\z@ \@afterindentfalse \secdef\@chapter\@schapter} Richard
Re: Need Help Using LyX
On 08/01/2014 07:44 AM, Philipp Gröne wrote: Hi there! I need some assistance using LyX. I want to make a list of pictures. Each of this pictures has either a chapter number (1) or a section number (1.1). I chose the thesis-template shiped with LyX to achieve this, mainly because it provides chapters, sections and a table of contents. It looks mostly okay, but I still need to change the following things, listed in no particular order: These are all LaTeX issues. All of these things are set by the document class and are not really designed to be customizable. You can change them, but it means learning some LaTeX and doing some work in the preamble. For what it's worth, I'd suggest you use the basic book class. It's more easily customizable. What follows is for that. 1) The table of contents should not have a title (i.e. Table of contents) \renewcommand\contents{} 2) The font of all entries in the table of contents should be identical. At the moment, the chapter- and the section titles have different font families in the table of content, and changing it manually only changes the chapter-titles in the ToC, not the section-titles. This is probably done most easily using the titletoc or titlesec package, but the TOC entries are set using a bunch of macros l@chapter, l@section, etc, that are defined in the book.cls file, e.g.: \newcommand*\l@chapter[2]{% \ifnum \c@tocdepth \m@ne \addpenalty{-\@highpenalty}% \vskip 1.0em \@plus\p@ \setlength\@tempdima{1.5em}% \begingroup \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth \leavevmode \bfseries \advance\leftskip\@tempdima \hskip -\leftskip #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par \penalty\@highpenalty \endgroup \fi} If you want to change them, you can copy them to your premable, change it to \renewcommand, and do whatever you wish. 3) The font of the chapter numbers should also be identical, i.e. 12p and non-fat. Same. 4) The site with the ToC should have no page number. Currently it is labeled i. I assume you mean the page (seite) with the TOC. In any event, I'm not sure what to do about this. Maybe someone else would know. 5) There shouldnt be any page breaks, neither after the Toc nor before chapters. The command in book.cls is: \newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi \thispagestyle{plain}% \global\@topnum\z@ \@afterindentfalse \secdef\@chapter\@schapter} The first bit is what causes the page break, so you can remove it. This probably will not leave enough space above the chapter title, though, so you'll have to add something to do that. And you probably don't need the plain page style now. So perhaps something like: \renewcommand\chapter{\vspace*{2em} \global\@topnum\z@ \@afterindentfalse \secdef\@chapter\@schapter} Richard
Re: Need Help Using LyX
On 08/01/2014 07:44 AM, Philipp Gröne wrote: Hi there! I need some assistance using LyX. I want to make a list of pictures. Each of this pictures has either a chapter number (1) or a section number (1.1). I chose the thesis-template shiped with LyX to achieve this, mainly because it provides chapters, sections and a table of contents. It looks mostly okay, but I still need to change the following things, listed in no particular order: These are all LaTeX issues. All of these things are set by the document class and are not really designed to be customizable. You can change them, but it means learning some LaTeX and doing some work in the preamble. For what it's worth, I'd suggest you use the basic book class. It's more easily customizable. What follows is for that. 1) The table of contents should not have a title (i.e. "Table of contents") \renewcommand\contents{} 2) The font of all entries in the table of contents should be identical. At the moment, the chapter- and the section titles have different font families in the table of content, and changing it manually only changes the chapter-titles in the ToC, not the section-titles. This is probably done most easily using the titletoc or titlesec package, but the TOC entries are set using a bunch of macros l@chapter, l@section, etc, that are defined in the book.cls file, e.g.: \newcommand*\l@chapter[2]{% \ifnum \c@tocdepth >\m@ne \addpenalty{-\@highpenalty}% \vskip 1.0em \@plus\p@ \setlength\@tempdima{1.5em}% \begingroup \parindent \z@ \rightskip \@pnumwidth \parfillskip -\@pnumwidth \leavevmode \bfseries \advance\leftskip\@tempdima \hskip -\leftskip #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par \penalty\@highpenalty \endgroup \fi} If you want to change them, you can copy them to your premable, change it to "\renewcommand", and do whatever you wish. 3) The font of the chapter numbers should also be identical, i.e. 12p and non-fat. Same. 4) The site with the ToC should have no page number. Currently it is labeled "i". I assume you mean the page (seite) with the TOC. In any event, I'm not sure what to do about this. Maybe someone else would know. 5) There shouldnt be any page breaks, neither after the Toc nor before chapters. The command in book.cls is: \newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi \thispagestyle{plain}% \global\@topnum\z@ \@afterindentfalse \secdef\@chapter\@schapter} The first bit is what causes the page break, so you can remove it. This probably will not leave enough space above the chapter title, though, so you'll have to add something to do that. And you probably don't need the plain page style now. So perhaps something like: \renewcommand\chapter{\vspace*{2em} \global\@topnum\z@ \@afterindentfalse \secdef\@chapter\@schapter} Richard
Need Help Using LyX
Hi there! I need some assistance using LyX. I want to make a list of pictures. Each of this pictures has either a chapter number (1) or a section number (1.1). I chose the thesis-template shiped with LyX to achieve this, mainly because it provides chapters, sections and a table of contents. It looks mostly okay, but I still need to change the following things, listed in no particular order: 1) The table of contents should not have a title (i.e. Table of contents) 2) The font of all entries in the table of contents should be identical. At the moment, the chapter- and the section titles have different font families in the table of content, and changing it manually only changes the chapter-titles in the ToC, not the section-titles. 3) The font of te chapter numbers should also be identical, i.e. 12p and non-fat. 4) The site with the ToC should have no page number. Currently it is labeled i. 5) There shouldnt be any page breaks, neither after the Toc nor before chapters. I guess, everything in this list is fairly easy to achieve. Unfortunately, I do not even now were I should start reading to learn how to do this. I would be most gratefull if someone could explain how to solve my problems, and point me in the right direction of a manual. Thanks in advance! Ph.
Need Help Using LyX
Hi there! I need some assistance using LyX. I want to make a list of pictures. Each of this pictures has either a chapter number (1) or a section number (1.1). I chose the thesis-template shiped with LyX to achieve this, mainly because it provides chapters, sections and a table of contents. It looks mostly okay, but I still need to change the following things, listed in no particular order: 1) The table of contents should not have a title (i.e. Table of contents) 2) The font of all entries in the table of contents should be identical. At the moment, the chapter- and the section titles have different font families in the table of content, and changing it manually only changes the chapter-titles in the ToC, not the section-titles. 3) The font of te chapter numbers should also be identical, i.e. 12p and non-fat. 4) The site with the ToC should have no page number. Currently it is labeled i. 5) There shouldnt be any page breaks, neither after the Toc nor before chapters. I guess, everything in this list is fairly easy to achieve. Unfortunately, I do not even now were I should start reading to learn how to do this. I would be most gratefull if someone could explain how to solve my problems, and point me in the right direction of a manual. Thanks in advance! Ph.
Need Help Using LyX
Hi there! I need some assistance using LyX. I want to make a list of pictures. Each of this pictures has either a chapter number (1) or a section number (1.1). I chose the thesis-template shiped with LyX to achieve this, mainly because it provides chapters, sections and a table of contents. It looks mostly okay, but I still need to change the following things, listed in no particular order: 1) The table of contents should not have a title (i.e. "Table of contents") 2) The font of all entries in the table of contents should be identical. At the moment, the chapter- and the section titles have different font families in the table of content, and changing it manually only changes the chapter-titles in the ToC, not the section-titles. 3) The font of te chapter numbers should also be identical, i.e. 12p and non-fat. 4) The site with the ToC should have no page number. Currently it is labeled "i". 5) There shouldnt be any page breaks, neither after the Toc nor before chapters. I guess, everything in this list is fairly easy to achieve. Unfortunately, I do not even now were I should start reading to learn how to do this. I would be most gratefull if someone could explain how to solve my problems, and point me in the right direction of a manual. Thanks in advance! Ph.