Re: toggling font styles.
"Theo" == Theo Veenker [EMAIL PROTECTED] writes: Theo Hi all, Would it be possible in LyX to TOGGLE font-bold and Theo font-code as is the case with font-emph, font-noun, Theo font-underline etc? Currently I have to to use the character Theo layout dialog to reverse an unintended bold-style or code-style Theo and that is not very convenient. I'm am using LyX 1.0.0. Since this is an old problem that never got fixed, your message enticed me to have a look at it. I have commited a fix to cvs, and hopefully it works... JMarc
RE: Parts of C-Program-Code in lyx
LyX-Code works nicely for this. I did student hand outs for a class that way. Mail me if you need an example, but it is actually really simple. Regards Roland On 13-Apr-99 Alexander Wollmann wrote: Hi everybody. As part of my exam-paper I wrote a C - program and now I have to write a documentation about this. So I need to include a lot of examples of the c-source-code to my paper. I thought the algorithm - float would do this, but I it doesn´t seem so. Can somebody tell me the way to get this to work? I need the source-code to look like in emacs, i.e typewriter font, and indents. For example this one: struct draw_data { int num_elements; int num_vertices; REAL xmin,xmax,ymin,ymax,zmin,zmax; int *dof_numbers[3]; }; Thanks for any help!! Alex. --- Alexander Wollmann Universität Freiburg, Abteilung Elementar-Mathematik und Didaktik der Mathematik E-Mail: Alexander Wollmann [EMAIL PROTECTED] Date: 13-Apr-99 Time: 16:21:17 This message was sent by XFMail --- Roland Krause Visiting Research Associate - Center for Computational Mechanics Washington University, Saint Louis Roland Krause [EMAIL PROTECTED]
Re: Parts of C-Program-Code in lyx
Alexander Wollmann wrote: Hi everybody. As part of my exam-paper I wrote a C - program and now I have to write a documentation about this. So I need to include a lot of examples of the c-source-code to my paper. I thought the algorithm - float would do this, but I it doesn´t seem so. Can somebody tell me the way to get this to work? I need the source-code to look like in emacs, i.e typewriter font, and indents. For example this one: choose the package listings and create a new command and a new counter in the Latex-Preamble(Vorspann) like the following: \newcommand{\lst}[2]{\vspace{0.5cm}\noindent \refstepcounter{lst_counter} \bf\ Listing \arabic{chapter}-\arabic{lst_counter}\hspace{0.2cm} \rm#2\lstinputlisting{#1}\indent} \newcounter{lst_counter}[chapter] at the beginning of your document you can set the values for the package listings: \lstset{language=Pascal,keywordstyle=\bfseries} \lstset{basicstyle=\footnotesize,keywordstyle=\bfseries,nonkeywordstyle={}, blankstring=true,labelstyle=\tiny,labelstep=1,indent=2em,frame=lr} I choosed the Pascal for my programming language but C is also possible. the new command lst has two parameters, the first one is the filename for the programm-code and the second for the title (opptional, may be empty). \lst{file-name}[the first programm} the counting is same as the one for the sections. A new section returns the counter "lst_counter". I have two other new commands for only one line of programm-code and one for typing code in regular text. Herbert -- [EMAIL PROTECTED] http://www.canisius.de/
Re: toggling font styles.
"Theo" == Theo Veenker [EMAIL PROTECTED] writes: Theo Hi all, Would it be possible in LyX to TOGGLE font-bold and Theo font-code as is the case with font-emph, font-noun, Theo font-underline etc? Currently I have to to use the character Theo layout dialog to reverse an unintended bold-style or code-style Theo and that is not very convenient. I'm am using LyX 1.0.0. Since this is an old problem that never got fixed, your message enticed me to have a look at it. I have commited a fix to cvs, and hopefully it works... JMarc
Re: Parts of C-Program-Code in lyx
"Alexander" == Alexander Wollmann [EMAIL PROTECTED] writes: Alexander Hi everybody. As part of my exam-paper I wrote a C - Alexander program and now I have to write a documentation about Alexander this. So I need to include a lot of examples of the Alexander c-source-code to my paper. I thought the algorithm - float Alexander would do this, but I it doesn´t seem so. Can somebody tell Alexander me the way to get this to work? I need the source-code to Alexander look like in emacs, i.e typewriter font, and indents. For Alexander example this one: Alexander struct draw_data { int num_elements; int num_vertices; REAL Alexander xmin,xmax,ymin,ymax,zmin,zmax; int *dof_numbers[3]; }; Alexander Thanks for any help!! Hello, You can either use the LyX-Code layout or include the files directly with Insert-Include File (with the verbatim option). JMarc
RE: Parts of C-Program-Code in lyx
LyX-Code works nicely for this. I did student hand outs for a class that way. Mail me if you need an example, but it is actually really simple. Regards Roland On 13-Apr-99 Alexander Wollmann wrote: Hi everybody. As part of my exam-paper I wrote a C - program and now I have to write a documentation about this. So I need to include a lot of examples of the c-source-code to my paper. I thought the algorithm - float would do this, but I it doesn´t seem so. Can somebody tell me the way to get this to work? I need the source-code to look like in emacs, i.e typewriter font, and indents. For example this one: struct draw_data { int num_elements; int num_vertices; REAL xmin,xmax,ymin,ymax,zmin,zmax; int *dof_numbers[3]; }; Thanks for any help!! Alex. --- Alexander Wollmann Universität Freiburg, Abteilung Elementar-Mathematik und Didaktik der Mathematik E-Mail: Alexander Wollmann [EMAIL PROTECTED] Date: 13-Apr-99 Time: 16:21:17 This message was sent by XFMail --- Roland Krause Visiting Research Associate - Center for Computational Mechanics Washington University, Saint Louis Roland Krause [EMAIL PROTECTED]
Re: Parts of C-Program-Code in lyx
Alexander Wollmann wrote: Hi everybody. As part of my exam-paper I wrote a C - program and now I have to write a documentation about this. So I need to include a lot of examples of the c-source-code to my paper. I thought the algorithm - float would do this, but I it doesn´t seem so. Can somebody tell me the way to get this to work? I need the source-code to look like in emacs, i.e typewriter font, and indents. For example this one: choose the package listings and create a new command and a new counter in the Latex-Preamble(Vorspann) like the following: \newcommand{\lst}[2]{\vspace{0.5cm}\noindent \refstepcounter{lst_counter} \bf\ Listing \arabic{chapter}-\arabic{lst_counter}\hspace{0.2cm} \rm#2\lstinputlisting{#1}\indent} \newcounter{lst_counter}[chapter] at the beginning of your document you can set the values for the package listings: \lstset{language=Pascal,keywordstyle=\bfseries} \lstset{basicstyle=\footnotesize,keywordstyle=\bfseries,nonkeywordstyle={}, blankstring=true,labelstyle=\tiny,labelstep=1,indent=2em,frame=lr} I choosed the Pascal for my programming language but C is also possible. the new command lst has two parameters, the first one is the filename for the programm-code and the second for the title (opptional, may be empty). \lst{file-name}[the first programm} the counting is same as the one for the sections. A new section returns the counter "lst_counter". I have two other new commands for only one line of programm-code and one for typing code in regular text. Herbert -- [EMAIL PROTECTED] http://www.canisius.de/
printing page range; kdvi?
Hi, all... Two questions: When printing a range of pages, how does one specify, "Print from page 3 to the last page"? I have tried everything I can think of, such as "3-", "3...", and other strange things, and nothing produces anything other than an error. Also, has anyone successfully configured LyX to use the KDE dvi viewer, kdvi? I have gone into TeXconfig to see if that was where I could do it, but I don't even think it's set up properly -- I can print files, and view dvis, yet if I go to "xdvi configuration" I get a message, "'' does not exist" and TeXconfig exits. (It says it will display the error log, but it does not.) I would rather use kdvi than xdvi, if possible, because xdvi never fits on my screen, so its controls are often inaccessible. Any help will be appreciated! :) Thanks, --- // Carl Hudkins ]=[ ICQ: 5723399 ]=[ PGP: 0x50238d9e // // Vida i am afraid of programs! // Vida uses Windoze :)
Re: toggling font styles.
> "Theo" == Theo Veenker <[EMAIL PROTECTED]> writes: Theo> Hi all, Would it be possible in LyX to TOGGLE font-bold and Theo> font-code as is the case with font-emph, font-noun, Theo> font-underline etc? Currently I have to to use the character Theo> layout dialog to reverse an unintended bold-style or code-style Theo> and that is not very convenient. I'm am using LyX 1.0.0. Since this is an old problem that never got fixed, your message enticed me to have a look at it. I have commited a fix to cvs, and hopefully it works... JMarc
Re: Parts of C-Program-Code in lyx
> "Alexander" == Alexander Wollmann <[EMAIL PROTECTED]> writes: Alexander> Hi everybody. As part of my exam-paper I wrote a C - Alexander> program and now I have to write a documentation about Alexander> this. So I need to include a lot of examples of the Alexander> c-source-code to my paper. I thought the algorithm - float Alexander> would do this, but I it doesn´t seem so. Can somebody tell Alexander> me the way to get this to work? I need the source-code to Alexander> look like in emacs, i.e typewriter font, and indents. For Alexander> example this one: Alexander> struct draw_data { int num_elements; int num_vertices; REAL Alexander> xmin,xmax,ymin,ymax,zmin,zmax; int *dof_numbers[3]; }; Alexander> Thanks for any help!! Hello, You can either use the LyX-Code layout or include the files directly with Insert->Include File (with the verbatim option). JMarc
RE: Parts of C-Program-Code in lyx
LyX-Code works nicely for this. I did student hand outs for a class that way. Mail me if you need an example, but it is actually really simple. Regards Roland On 13-Apr-99 Alexander Wollmann wrote: > Hi everybody. > > As part of my exam-paper I wrote a C - program and now I have to write a > documentation about this. So I need to include a lot of examples of the > c-source-code to my paper. I thought the algorithm - float would do this, but > I > it doesn´t seem so. Can somebody tell me the way to get this to work? I need > the source-code to look like in emacs, i.e typewriter font, and indents. For > example this one: > > struct draw_data > { > int num_elements; > int num_vertices; > REAL xmin,xmax,ymin,ymax,zmin,zmax; > int *dof_numbers[3]; > }; > > Thanks for any help!! > > Alex. > > --- > Alexander Wollmann > Universität Freiburg, > Abteilung Elementar-Mathematik und Didaktik der Mathematik > > E-Mail: Alexander Wollmann <[EMAIL PROTECTED]> > Date: 13-Apr-99 > Time: 16:21:17 > > This message was sent by XFMail > --- Roland Krause Visiting Research Associate - Center for Computational Mechanics Washington University, Saint Louis Roland Krause <[EMAIL PROTECTED]>
Re: Parts of C-Program-Code in lyx
Alexander Wollmann wrote: > > Hi everybody. > > As part of my exam-paper I wrote a C - program and now I have to write a > documentation about this. So I need to include a lot of examples of the > c-source-code to my paper. I thought the algorithm - float would do this, but I > it doesn´t seem so. Can somebody tell me the way to get this to work? I need > the source-code to look like in emacs, i.e typewriter font, and indents. For > example this one: choose the package listings and create a new command and a new counter in the Latex-Preamble(Vorspann) like the following: \newcommand{\lst}[2]{\vspace{0.5cm}\noindent \refstepcounter{lst_counter} \bf\ Listing \arabic{chapter}-\arabic{lst_counter}\hspace{0.2cm} \rm#2\lstinputlisting{#1}\indent} \newcounter{lst_counter}[chapter] at the beginning of your document you can set the values for the package listings: \lstset{language=Pascal,keywordstyle=\bfseries} \lstset{basicstyle=\footnotesize,keywordstyle=\bfseries,nonkeywordstyle={}, blankstring=true,labelstyle=\tiny,labelstep=1,indent=2em,frame=lr} I choosed the Pascal for my programming language but C is also possible. the new command lst has two parameters, the first one is the filename for the programm-code and the second for the title (opptional, may be empty). \lst{}[the first programm} the counting is same as the one for the sections. A new section returns the counter "lst_counter". I have two other new commands for only one line of programm-code and one for typing code in regular text. Herbert -- [EMAIL PROTECTED] http://www.canisius.de/
printing page range; kdvi?
Hi, all... Two questions: When printing a range of pages, how does one specify, "Print from page 3 to the last page"? I have tried everything I can think of, such as "3-", "3...", and other strange things, and nothing produces anything other than an error. Also, has anyone successfully configured LyX to use the KDE dvi viewer, kdvi? I have gone into TeXconfig to see if that was where I could do it, but I don't even think it's set up properly -- I can print files, and view dvis, yet if I go to "xdvi configuration" I get a message, "'' does not exist" and TeXconfig exits. (It says it will display the error log, but it does not.) I would rather use kdvi than xdvi, if possible, because xdvi never fits on my screen, so its controls are often inaccessible. Any help will be appreciated! :) Thanks, --- // Carl Hudkins ]=[ ICQ: 5723399 ]=[ PGP: 0x50238d9e // // i am afraid of programs! // Vida uses Windoze :)