Re: pseudocode
On 19/08/2016 13:38, Helge Hafting wrote: Den 17. aug. 2016 12:14, skrev Kiuhnm: I can't use math in listings and I don't like the monospaced font. The LyX-Code environment lets you indent with spaces, and you can use math freely. The monospaced font is merely a default, you can override it with a character style: Mark your algorithmic text, Edit->Text Style->Customized... Select Family:Roman or Family:Sans serif according to taste. If you write lots of such algorithms, then the way to go is a custom document class with LyX-Code redefined to the font you like. A custom class take some work to set up, compare to the work of changing the font on every algorithm. This will do! Thank you. Kiuhnm
Re: pseudocode
Den 17. aug. 2016 12:14, skrev Kiuhnm: I can't use math in listings and I don't like the monospaced font. The LyX-Code environment lets you indent with spaces, and you can use math freely. The monospaced font is merely a default, you can override it with a character style: Mark your algorithmic text, Edit->Text Style->Customized... Select Family:Roman or Family:Sans serif according to taste. If you write lots of such algorithms, then the way to go is a custom document class with LyX-Code redefined to the font you like. A custom class take some work to set up, compare to the work of changing the font on every algorithm. Helge Hafting
Re: pseudocode
On 14/08/2016 23:33, Richard Heck wrote: On 08/14/2016 07:43 AM, Kiuhnm wrote: Hello, I'd like to insert some pseudocode in my paper using my own style. For instance, I don't like "endwhile", "endif", and similar. Here's an example of what I'd like (use a monospaced font): for $I_1$: for $I_2$: $X_{I_1}\leftarrow I usually use the enumerate environment (with the enumitem module) for this but this time I got the error "nested too deep". And, frankly, enumerate is not very convenient for algorighms because one needs to change the spacing, hide the labels, etc... Basically, I just need a way to indent lines the way I like and be able to use math. Doesn't the listings environment allow this? Here's an easy solution: \begin_body \begin_layout Standard \begin_inset FormulaMacro \newcommand{\tab}{\-\ \-\ \-\ } {} \end_inset \end_layout \begin_layout Standard pokpokpokp \end_layout \begin_layout Standard \begin_inset Formula $\tab$ \end_inset ijijijij \end_layout \begin_layout Standard \begin_inset Formula $\tab\tab$ \end_inset sdfsdfsdf \end_layout \begin_layout Standard \begin_inset Formula $\tab\tab\tab$ \end_inset dfdfgdfdg \end_layout \end_body
Re: pseudocode
On 14/08/2016 23:33, Richard Heck wrote: On 08/14/2016 07:43 AM, Kiuhnm wrote: Hello, I'd like to insert some pseudocode in my paper using my own style. For instance, I don't like "endwhile", "endif", and similar. Here's an example of what I'd like (use a monospaced font): for $I_1$: for $I_2$: $X_{I_1}\leftarrow I usually use the enumerate environment (with the enumitem module) for this but this time I got the error "nested too deep". And, frankly, enumerate is not very convenient for algorighms because one needs to change the spacing, hide the labels, etc... Basically, I just need a way to indent lines the way I like and be able to use math. Doesn't the listings environment allow this? I can't use math in listings and I don't like the monospaced font. Kiuhnm
Re: pseudocode
On 08/14/2016 07:43 AM, Kiuhnm wrote: > Hello, > > I'd like to insert some pseudocode in my paper using my own style. For > instance, I don't like "endwhile", "endif", and similar. > Here's an example of what I'd like (use a monospaced font): > > for $I_1$: > for $I_2$: > $X_{I_1}\leftarrow > > I usually use the enumerate environment (with the enumitem module) for > this but this time I got the error "nested too deep". And, frankly, > enumerate is not very convenient for algorighms because one needs to > change the spacing, hide the labels, etc... > > Basically, I just need a way to indent lines the way I like and be > able to use math. Doesn't the listings environment allow this? Richard
pseudocode
Hello, I'd like to insert some pseudocode in my paper using my own style. For instance, I don't like "endwhile", "endif", and similar. Here's an example of what I'd like (use a monospaced font): for $I_1$: for $I_2$: $X_{I_1}\leftarrow I usually use the enumerate environment (with the enumitem module) for this but this time I got the error "nested too deep". And, frankly, enumerate is not very convenient for algorighms because one needs to change the spacing, hide the labels, etc... Basically, I just need a way to indent lines the way I like and be able to use math. Kiuhnm
Display Pseudocode-Algorithms in Lyx
Is there a nice way to display Algorithms in Pseudocode-Algorithms in Lyx? Perhaps like in here: http://bit.ly/belSIj It would be great if something like Input: and Output: were implemented... Regards, iustifico
Re: Display Pseudocode-Algorithms in Lyx
On 10/14/2010 01:19 PM, iustifico wrote: Is there a nice way to display Algorithms in Pseudocode-Algorithms in Lyx? Perhaps like in here: http://bit.ly/belSIj It would be great if something like Input: and Output: were implemented... LyX supports the listings package, so I'd look into that. rh
Re: Display Pseudocode-Algorithms in Lyx
Am 14.10.2010 19:19, schrieb iustifico: Is there a nice way to display Algorithms in Pseudocode-Algorithms in Lyx? Yes, see chap. 7 Program Code Listings of the EmbeddedObjects manual that you find in LyX's help menu. regards Uwe
Re: Display Pseudocode-Algorithms in Lyx
Thank you, that is exactly what I am looking for. I see, that it is also possible to chose a language and lyx highlightens the keywords. That is nice! But I only want to write Pseudecode. Which of these available languages suits for that? Another question: Is it possible to write mathsymbols into this environment? CMD-M (MacOSX) doesn't seem to work... Regards, iustifico 2010/10/14 Uwe Stöhr uwesto...@web.de Am 14.10.2010 19:19, schrieb iustifico: Is there a nice way to display Algorithms in Pseudocode-Algorithms in Lyx? Yes, see chap. 7 Program Code Listings of the EmbeddedObjects manual that you find in LyX's help menu. regards Uwe
Re: Display Pseudocode-Algorithms in Lyx
iustifico iustifico at gmail.com writes: Thank you, that is exactly what I am looking for. I see, that it is also possible to chose a language and lyx highlightens the keywords. That is nice! But I only want to write Pseudecode. Which of these available languages suits for that? It depends on whether you want keywords (such as if or for) highlighted by a special font. If no, then you can leave the language box at no language selected. If yes, you want to look for a language that considers the keywords in your pseudocode to be reserved words. You might try Python or maybe sh to start. I typically use no language or else experiment. Another question: Is it possible to write mathsymbols into this environment? CMD-M (MacOSX) doesn't seem to work... Go to the advanced tab of the listing settings dialog and put mathescape=true in the right side pane. You will need to enter the math in raw LaTeX, not using the math editor. A trick I use is to use the math editor to type the math in a math inset, then copy it and paste it into the listings box. (I still have to supply the dollar signs myself.) /Paul
Re: Display Pseudocode-Algorithms in Lyx
Am 14.10.2010 21:09, schrieb iustifico: But I only want to write Pseudecode. Which of these available languages suits for that? This depend on the keywords that listings should recognize. Personally, I use Pascal for writing pseudocode. Another question: Is it possible to write mathsymbols into this environment? CMD-M (MacOSX) doesn't seem to work... This is possible, see the attached LyX file: - set the option mathescape = true for the listing - create the formula outside of the listing - copy the content of the formula (not the formula inset) to the clipboard via Ctrl-c - in the listing write $$ and paste between the dollar signs via Ctrl-v I'll add this info to the manual for LyX 1.6.8. regards Uwe ListingsMath.lyx Description: application/lyx
Display Pseudocode-Algorithms in Lyx
Is there a nice way to display Algorithms in Pseudocode-Algorithms in Lyx? Perhaps like in here: http://bit.ly/belSIj It would be great if something like Input: and Output: were implemented... Regards, iustifico
Re: Display Pseudocode-Algorithms in Lyx
On 10/14/2010 01:19 PM, iustifico wrote: Is there a nice way to display Algorithms in Pseudocode-Algorithms in Lyx? Perhaps like in here: http://bit.ly/belSIj It would be great if something like Input: and Output: were implemented... LyX supports the listings package, so I'd look into that. rh
Re: Display Pseudocode-Algorithms in Lyx
Am 14.10.2010 19:19, schrieb iustifico: Is there a nice way to display Algorithms in Pseudocode-Algorithms in Lyx? Yes, see chap. 7 Program Code Listings of the EmbeddedObjects manual that you find in LyX's help menu. regards Uwe
Re: Display Pseudocode-Algorithms in Lyx
Thank you, that is exactly what I am looking for. I see, that it is also possible to chose a language and lyx highlightens the keywords. That is nice! But I only want to write Pseudecode. Which of these available languages suits for that? Another question: Is it possible to write mathsymbols into this environment? CMD-M (MacOSX) doesn't seem to work... Regards, iustifico 2010/10/14 Uwe Stöhr uwesto...@web.de Am 14.10.2010 19:19, schrieb iustifico: Is there a nice way to display Algorithms in Pseudocode-Algorithms in Lyx? Yes, see chap. 7 Program Code Listings of the EmbeddedObjects manual that you find in LyX's help menu. regards Uwe
Re: Display Pseudocode-Algorithms in Lyx
iustifico iustifico at gmail.com writes: Thank you, that is exactly what I am looking for. I see, that it is also possible to chose a language and lyx highlightens the keywords. That is nice! But I only want to write Pseudecode. Which of these available languages suits for that? It depends on whether you want keywords (such as if or for) highlighted by a special font. If no, then you can leave the language box at no language selected. If yes, you want to look for a language that considers the keywords in your pseudocode to be reserved words. You might try Python or maybe sh to start. I typically use no language or else experiment. Another question: Is it possible to write mathsymbols into this environment? CMD-M (MacOSX) doesn't seem to work... Go to the advanced tab of the listing settings dialog and put mathescape=true in the right side pane. You will need to enter the math in raw LaTeX, not using the math editor. A trick I use is to use the math editor to type the math in a math inset, then copy it and paste it into the listings box. (I still have to supply the dollar signs myself.) /Paul
Re: Display Pseudocode-Algorithms in Lyx
Am 14.10.2010 21:09, schrieb iustifico: But I only want to write Pseudecode. Which of these available languages suits for that? This depend on the keywords that listings should recognize. Personally, I use Pascal for writing pseudocode. Another question: Is it possible to write mathsymbols into this environment? CMD-M (MacOSX) doesn't seem to work... This is possible, see the attached LyX file: - set the option mathescape = true for the listing - create the formula outside of the listing - copy the content of the formula (not the formula inset) to the clipboard via Ctrl-c - in the listing write $$ and paste between the dollar signs via Ctrl-v I'll add this info to the manual for LyX 1.6.8. regards Uwe ListingsMath.lyx Description: application/lyx
Display Pseudocode-Algorithms in Lyx
Is there a nice way to display Algorithms in Pseudocode-Algorithms in Lyx? Perhaps like in here: http://bit.ly/belSIj It would be great if something like "Input:" and "Output:" were implemented... Regards, iustifico
Re: Display Pseudocode-Algorithms in Lyx
On 10/14/2010 01:19 PM, iustifico wrote: Is there a nice way to display Algorithms in Pseudocode-Algorithms in Lyx? Perhaps like in here: http://bit.ly/belSIj It would be great if something like "Input:" and "Output:" were implemented... LyX supports the listings package, so I'd look into that. rh
Re: Display Pseudocode-Algorithms in Lyx
Am 14.10.2010 19:19, schrieb iustifico: Is there a nice way to display Algorithms in Pseudocode-Algorithms in Lyx? Yes, see chap. 7 "Program Code Listings" of the EmbeddedObjects manual that you find in LyX's help menu. regards Uwe
Re: Display Pseudocode-Algorithms in Lyx
Thank you, that is exactly what I am looking for. I see, that it is also possible to chose a language and lyx highlightens the keywords. That is nice! But I only want to write Pseudecode. Which of these available languages suits for that? Another question: Is it possible to write mathsymbols into this environment? CMD-M (MacOSX) doesn't seem to work... Regards, iustifico 2010/10/14 Uwe Stöhr <uwesto...@web.de> > Am 14.10.2010 19:19, schrieb iustifico: > > > Is there a nice way to display Algorithms in Pseudocode-Algorithms in Lyx? >> > > Yes, see chap. 7 "Program Code Listings" of the EmbeddedObjects manual that > you find in LyX's help menu. > > regards Uwe >
Re: Display Pseudocode-Algorithms in Lyx
iustifico gmail.com> writes: > Thank you, that is exactly what I am looking for. I see, that it is also > possible to chose a language and lyx highlightens the keywords. That is nice! > > But I only want to write Pseudecode. Which of these available languages > suits for that? It depends on whether you want "keywords" (such as "if" or "for") highlighted by a special font. If no, then you can leave the language box at "no language selected". If yes, you want to look for a language that considers the keywords in your pseudocode to be reserved words. You might try Python or maybe sh to start. I typically use "no language" or else experiment. > > Another question: Is it possible to write mathsymbols into this environment? CMD-M (MacOSX) doesn't seem to work... Go to the advanced tab of the listing settings dialog and put mathescape=true in the right side pane. You will need to enter the math in raw LaTeX, not using the math editor. A trick I use is to use the math editor to type the math in a math inset, then copy it and paste it into the listings box. (I still have to supply the dollar signs myself.) /Paul
Re: Display Pseudocode-Algorithms in Lyx
Am 14.10.2010 21:09, schrieb iustifico: But I only want to write Pseudecode. Which of these available languages suits for that? This depend on the keywords that listings should recognize. Personally, I use Pascal for writing pseudocode. Another question: Is it possible to write mathsymbols into this environment? CMD-M (MacOSX) doesn't seem to work... This is possible, see the attached LyX file: - set the option mathescape = true for the listing - create the formula outside of the listing - copy the content of the formula (not the formula inset) to the clipboard via Ctrl-c - in the listing write $$ and paste between the dollar signs via Ctrl-v I'll add this info to the manual for LyX 1.6.8. regards Uwe ListingsMath.lyx Description: application/lyx
Pseudocode in LyX?
Are there any build in pseudocode editor in LyX or is it only possible to write pseudocode by inserting a raw latex environment in the lyx file? -- View this message in context: http://n2.nabble.com/Pseudocode-in-LyX--tp678469p678469.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Pseudocode in LyX?
Crtl+L On Jeudi 7 Août 2008, bigblop wrote: Are there any build in pseudocode editor in LyX or is it only possible to write pseudocode by inserting a raw latex environment in the lyx file? -- Prof. Pascal Francq Digital Information Chair Université libre de Bruxelles Department of Information and Communication Sciences Avenue F.D. Roosevelt, 50 CP 123 B-1050 Brussels BELGIUM Tel. +32-2-650 47 65 Fax +32-2-650 39 21 signature.asc Description: This is a digitally signed message part.
Re: Pseudocode in LyX?
Pascal Francq wrote: Crtl+L I guess bigblop is searching an alternative for exactly that ;-) On Jeudi 7 Août 2008, bigblop wrote: Are there any build in pseudocode editor in LyX or is it only possible to write pseudocode by inserting a raw latex environment in the lyx file? Two ways: 1) Insert - Programming listing 2) Layout Combo - LyX-Code environment. Abdel.
Re: Pseudocode in LyX?
bigblop schrieb: Are there any build in pseudocode editor in LyX or is it only possible to write pseudocode by inserting a raw latex environment in the lyx file? Use the Listings inset that is described in the userGuide under program listing. regards Uwe
Pseudocode in LyX?
Are there any build in pseudocode editor in LyX or is it only possible to write pseudocode by inserting a raw latex environment in the lyx file? -- View this message in context: http://n2.nabble.com/Pseudocode-in-LyX--tp678469p678469.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Pseudocode in LyX?
Crtl+L On Jeudi 7 Août 2008, bigblop wrote: Are there any build in pseudocode editor in LyX or is it only possible to write pseudocode by inserting a raw latex environment in the lyx file? -- Prof. Pascal Francq Digital Information Chair Université libre de Bruxelles Department of Information and Communication Sciences Avenue F.D. Roosevelt, 50 CP 123 B-1050 Brussels BELGIUM Tel. +32-2-650 47 65 Fax +32-2-650 39 21 signature.asc Description: This is a digitally signed message part.
Re: Pseudocode in LyX?
Pascal Francq wrote: Crtl+L I guess bigblop is searching an alternative for exactly that ;-) On Jeudi 7 Août 2008, bigblop wrote: Are there any build in pseudocode editor in LyX or is it only possible to write pseudocode by inserting a raw latex environment in the lyx file? Two ways: 1) Insert - Programming listing 2) Layout Combo - LyX-Code environment. Abdel.
Re: Pseudocode in LyX?
bigblop schrieb: Are there any build in pseudocode editor in LyX or is it only possible to write pseudocode by inserting a raw latex environment in the lyx file? Use the Listings inset that is described in the userGuide under program listing. regards Uwe
Pseudocode in LyX?
Are there any build in pseudocode editor in LyX or is it only possible to write pseudocode by inserting a raw latex environment in the lyx file? -- View this message in context: http://n2.nabble.com/Pseudocode-in-LyX--tp678469p678469.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Pseudocode in LyX?
Crtl+L On Jeudi 7 Août 2008, bigblop wrote: > Are there any build in pseudocode editor in LyX or is it only possible to > write pseudocode by inserting a raw latex environment in the lyx file? -- Prof. Pascal Francq Digital Information Chair Université libre de Bruxelles Department of Information and Communication Sciences Avenue F.D. Roosevelt, 50 CP 123 B-1050 Brussels BELGIUM Tel. +32-2-650 47 65 Fax +32-2-650 39 21 signature.asc Description: This is a digitally signed message part.
Re: Pseudocode in LyX?
Pascal Francq wrote: Crtl+L I guess bigblop is searching an alternative for exactly that ;-) On Jeudi 7 Août 2008, bigblop wrote: Are there any build in pseudocode editor in LyX or is it only possible to write pseudocode by inserting a raw latex environment in the lyx file? Two ways: 1) Insert -> Programming listing 2) Layout Combo -> LyX-Code environment. Abdel.
Re: Pseudocode in LyX?
bigblop schrieb: Are there any build in pseudocode editor in LyX or is it only possible to write pseudocode by inserting a raw latex environment in the lyx file? Use the Listings inset that is described in the userGuide under program listing. regards Uwe
Re: Problem using pseudocode using algorithm/algpseudocode and Lyx
Ok, I found the problem (I think). LyX makes an error importing the raw LaTeX. (I pasted your code into an algorithm the first time, which is why it worked for me.) - LaTeX Error: Something's wrong--perhaps a missing item. ...uclid} \begin{algorithmic}{[}1] \Procedure {Euclid}{$a,b$}\Comment{The Note the braces around the left bracket in the optional argument [1]. You can correct this by deleting [1], then clicking on the ERT inset containing \begin{algorithmic} and inserting the [1] into the inset. Oddly enough, if you type a left bracket anywhere inside the float, LyX surrounds it with braces. I don't know why it does that, but I can't imagine it's a good idea. Seems to me we might have two separate bugs here: (1) not putting the optional argument [1] inside the ERT with the \begin{algorithmic} command; and (2) putting braces around all left brackets. You might want to file bug reports on these. /Paul
Re: Problem using pseudocode using algorithm/algpseudocode and Lyx
[EMAIL PROTECTED] wrote: Sorry if this is obvious, but I've been searching for quite a while without luck. Basically I would like to use Lyx and edit pseudocode using packages algorithm/algorithmic/algpseudocode. Preferably the notation using arrows for assignment, as demonstrated in the .tex file. This .tex file works fine using LaTeX but when importing the file into LyX, and creating a pdf preview, LyX complains: - LaTeX Error: Something's wrong--perhaps a missing item. ...uclid} \begin{algorithmic}{[}1] \Procedure {Euclid}{$a,b$}\Comment{The Try typing return to proceed. If that doesn't work, type X return to quit. - The link that might offer help in this similar issue is broken. http://www.mail-archive.com/lyx-users@lists.lyx.org/msg06574.html Can anyone help and show how to do this within LyX? Thanks, Erwin Works fine for me here (LyX 1.5.3, Win XP). I tried both DVI and PDF and did not get the error message you quoted. My LyX file is attached. algorithmic.lyx Description: application/lyx
Re: Problem using pseudocode using algorithm/algpseudocode and Lyx
Ok, I found the problem (I think). LyX makes an error importing the raw LaTeX. (I pasted your code into an algorithm the first time, which is why it worked for me.) - LaTeX Error: Something's wrong--perhaps a missing item. ...uclid} \begin{algorithmic}{[}1] \Procedure {Euclid}{$a,b$}\Comment{The Note the braces around the left bracket in the optional argument [1]. You can correct this by deleting [1], then clicking on the ERT inset containing \begin{algorithmic} and inserting the [1] into the inset. Oddly enough, if you type a left bracket anywhere inside the float, LyX surrounds it with braces. I don't know why it does that, but I can't imagine it's a good idea. Seems to me we might have two separate bugs here: (1) not putting the optional argument [1] inside the ERT with the \begin{algorithmic} command; and (2) putting braces around all left brackets. You might want to file bug reports on these. /Paul
Re: Problem using pseudocode using algorithm/algpseudocode and Lyx
[EMAIL PROTECTED] wrote: Sorry if this is obvious, but I've been searching for quite a while without luck. Basically I would like to use Lyx and edit pseudocode using packages algorithm/algorithmic/algpseudocode. Preferably the notation using arrows for assignment, as demonstrated in the .tex file. This .tex file works fine using LaTeX but when importing the file into LyX, and creating a pdf preview, LyX complains: - LaTeX Error: Something's wrong--perhaps a missing item. ...uclid} \begin{algorithmic}{[}1] \Procedure {Euclid}{$a,b$}\Comment{The Try typing return to proceed. If that doesn't work, type X return to quit. - The link that might offer help in this similar issue is broken. http://www.mail-archive.com/lyx-users@lists.lyx.org/msg06574.html Can anyone help and show how to do this within LyX? Thanks, Erwin Works fine for me here (LyX 1.5.3, Win XP). I tried both DVI and PDF and did not get the error message you quoted. My LyX file is attached. algorithmic.lyx Description: application/lyx
Re: Problem using pseudocode using algorithm/algpseudocode and Lyx
Ok, I found the problem (I think). LyX makes an error importing the raw LaTeX. (I pasted your code into an algorithm the first time, which is why it worked for me.) - LaTeX Error: Something's wrong--perhaps a missing item. ...uclid} \begin{algorithmic}{[}1] \Procedure {Euclid}{$a,b$}\Comment{The Note the braces around the left bracket in the optional argument [1]. You can correct this by deleting [1], then clicking on the ERT inset containing \begin{algorithmic} and inserting the [1] into the inset. Oddly enough, if you type a left bracket anywhere inside the float, LyX surrounds it with braces. I don't know why it does that, but I can't imagine it's a good idea. Seems to me we might have two separate bugs here: (1) not putting the optional argument [1] inside the ERT with the \begin{algorithmic} command; and (2) putting braces around all left brackets. You might want to file bug reports on these. /Paul
Re: Problem using pseudocode using algorithm/algpseudocode and Lyx
[EMAIL PROTECTED] wrote: Sorry if this is obvious, but I've been searching for quite a while without luck. Basically I would like to use Lyx and edit pseudocode using packages algorithm/algorithmic/algpseudocode. Preferably the notation using arrows for assignment, as demonstrated in the .tex file. This .tex file works fine using LaTeX but when importing the file into LyX, and creating a pdf preview, LyX complains: - LaTeX Error: Something's wrong--perhaps a missing item. ...uclid} \begin{algorithmic}{[}1] \Procedure {Euclid}{$a,b$}\Comment{The Try typingto proceed. If that doesn't work, type X to quit. - The link that might offer help in this similar issue is broken. http://www.mail-archive.com/lyx-users@lists.lyx.org/msg06574.html Can anyone help and show how to do this within LyX? Thanks, Erwin Works fine for me here (LyX 1.5.3, Win XP). I tried both DVI and PDF and did not get the error message you quoted. My LyX file is attached. algorithmic.lyx Description: application/lyx
Problem using pseudocode using algorithm/algpseudocode and Lyx
Sorry if this is obvious, but I've been searching for quite a while without luck. Basically I would like to use Lyx and edit pseudocode using packages algorithm/algorithmic/algpseudocode. Preferably the notation using arrows for assignment, as demonstrated in the .tex file. This .tex file works fine using LaTeX but when importing the file into LyX, and creating a pdf preview, LyX complains: - LaTeX Error: Something's wrong--perhaps a missing item. ...uclid} \begin{algorithmic}{[}1] \Procedure {Euclid}{$a,b$}\Comment{The Try typing return to proceed. If that doesn't work, type X return to quit. - The link that might offer help in this similar issue is broken. http://www.mail-archive.com/lyx-users@lists.lyx.org/msg06574.html Can anyone help and show how to do this within LyX? Thanks, Erwin - \documentclass{article} \usepackage{algorithm} \usepackage{algpseudocode} \usepackage{graphicx} \begin{document} \title{Introduction to \LaTeX{}} \author{Author's Name} \maketitle \begin{abstract} The abstract text goes here. \end{abstract} \section{Introduction} Here is the text of your introduction. \begin{equation} \label{simple_equation} \alpha = \sqrt{ \beta } \end{equation} \subsection{Subsection Heading Here} Write your subsection text here. \section{Conclusion} Write your conclusion here. \begin{algorithm} \caption{Euclid's algorithm}\label{euclid} \begin{algorithmic}[1] \Procedure{Euclid}{$a,b$}\Comment{The g.c.d. of a and b} \State $r\gets a\bmod b$ \If {$r\not=0$} \While{$r\not=0$}\Comment{We have the answer if r is 0} \State $a\gets b$ \State $b\gets r$ \State $r\gets a\bmod b$ \EndWhile\label{euclidendwhile} \EndIf \State \textbf{return} $b$\Comment{The g.c.d. is b} \EndProcedure \end{algorithmic} \end{algorithm} \end{document}
Problem using pseudocode using algorithm/algpseudocode and Lyx
Sorry if this is obvious, but I've been searching for quite a while without luck. Basically I would like to use Lyx and edit pseudocode using packages algorithm/algorithmic/algpseudocode. Preferably the notation using arrows for assignment, as demonstrated in the .tex file. This .tex file works fine using LaTeX but when importing the file into LyX, and creating a pdf preview, LyX complains: - LaTeX Error: Something's wrong--perhaps a missing item. ...uclid} \begin{algorithmic}{[}1] \Procedure {Euclid}{$a,b$}\Comment{The Try typing return to proceed. If that doesn't work, type X return to quit. - The link that might offer help in this similar issue is broken. http://www.mail-archive.com/lyx-users@lists.lyx.org/msg06574.html Can anyone help and show how to do this within LyX? Thanks, Erwin - \documentclass{article} \usepackage{algorithm} \usepackage{algpseudocode} \usepackage{graphicx} \begin{document} \title{Introduction to \LaTeX{}} \author{Author's Name} \maketitle \begin{abstract} The abstract text goes here. \end{abstract} \section{Introduction} Here is the text of your introduction. \begin{equation} \label{simple_equation} \alpha = \sqrt{ \beta } \end{equation} \subsection{Subsection Heading Here} Write your subsection text here. \section{Conclusion} Write your conclusion here. \begin{algorithm} \caption{Euclid's algorithm}\label{euclid} \begin{algorithmic}[1] \Procedure{Euclid}{$a,b$}\Comment{The g.c.d. of a and b} \State $r\gets a\bmod b$ \If {$r\not=0$} \While{$r\not=0$}\Comment{We have the answer if r is 0} \State $a\gets b$ \State $b\gets r$ \State $r\gets a\bmod b$ \EndWhile\label{euclidendwhile} \EndIf \State \textbf{return} $b$\Comment{The g.c.d. is b} \EndProcedure \end{algorithmic} \end{algorithm} \end{document}
Problem using pseudocode using algorithm/algpseudocode and Lyx
Sorry if this is obvious, but I've been searching for quite a while without luck. Basically I would like to use Lyx and edit pseudocode using packages algorithm/algorithmic/algpseudocode. Preferably the notation using arrows for assignment, as demonstrated in the .tex file. This .tex file works fine using LaTeX but when importing the file into LyX, and creating a pdf preview, LyX complains: - LaTeX Error: Something's wrong--perhaps a missing item. ...uclid} \begin{algorithmic}{[}1] \Procedure {Euclid}{$a,b$}\Comment{The Try typingto proceed. If that doesn't work, type X to quit. - The link that might offer help in this similar issue is broken. http://www.mail-archive.com/lyx-users@lists.lyx.org/msg06574.html Can anyone help and show how to do this within LyX? Thanks, Erwin - \documentclass{article} \usepackage{algorithm} \usepackage{algpseudocode} \usepackage{graphicx} \begin{document} \title{Introduction to \LaTeX{}} \author{Author's Name} \maketitle \begin{abstract} The abstract text goes here. \end{abstract} \section{Introduction} Here is the text of your introduction. \begin{equation} \label{simple_equation} \alpha = \sqrt{ \beta } \end{equation} \subsection{Subsection Heading Here} Write your subsection text here. \section{Conclusion} Write your conclusion here. \begin{algorithm} \caption{Euclid's algorithm}\label{euclid} \begin{algorithmic}[1] \Procedure{Euclid}{$a,b$}\Comment{The g.c.d. of a and b} \State $r\gets a\bmod b$ \If {$r\not=0$} \While{$r\not=0$}\Comment{We have the answer if r is 0} \State $a\gets b$ \State $b\gets r$ \State $r\gets a\bmod b$ \EndWhile\label{euclidendwhile} \EndIf \State \textbf{return} $b$\Comment{The g.c.d. is b} \EndProcedure \end{algorithmic} \end{algorithm} \end{document}
Re: Looking for way of writing pseudocode
On 2/22/06, Hannan Sadar [EMAIL PROTECTED] wrote: I need to write some pseudocode. Is there some specific package? Or it suffices LyX code? You could use one of the following LaTeX package (Probably there are more): pseudocode alg algorithm2e you need to go to http://www.ctan.org/ and choose the type you prefer Thanks, Martin and Hannan. The pseudocode packages looks good! Paul
Re: Looking for way of writing pseudocode
On 2/22/06, Hannan Sadar [EMAIL PROTECTED] wrote: I need to write some pseudocode. Is there some specific package? Or it suffices LyX code? You could use one of the following LaTeX package (Probably there are more): pseudocode alg algorithm2e you need to go to http://www.ctan.org/ and choose the type you prefer Thanks, Martin and Hannan. The pseudocode packages looks good! Paul
Re: Looking for way of writing pseudocode
On 2/22/06, Hannan Sadar <[EMAIL PROTECTED]> wrote: > > I need to write some pseudocode. Is there some specific package? Or it > > suffices LyX code? > > > You could use one of the following LaTeX package (Probably there are more): > > pseudocode > alg > algorithm2e > > you need to go to http://www.ctan.org/ and choose the type you prefer Thanks, Martin and Hannan. The pseudocode packages looks good! Paul
Looking for way of writing pseudocode
Dear All I need to write some pseudocode. Is there some specific package? Or it suffices LyX code? Thanks in advance, Paul
Re: Looking for way of writing pseudocode
lyx code is good. otherwise have a look at the listings package martin On 22/02/06, Paul Smith [EMAIL PROTECTED] wrote: Dear All I need to write some pseudocode. Is there some specific package? Or it suffices LyX code? Thanks in advance, Paul
Re: Looking for way of writing pseudocode
Paul Smith wrote: Dear All I need to write some pseudocode. Is there some specific package? Or it suffices LyX code? Thanks in advance, Paul You could use one of the following LaTeX package (Probably there are more): pseudocode alg algorithm2e you need to go to http://www.ctan.org/ and choose the type you prefer
Looking for way of writing pseudocode
Dear All I need to write some pseudocode. Is there some specific package? Or it suffices LyX code? Thanks in advance, Paul
Re: Looking for way of writing pseudocode
lyx code is good. otherwise have a look at the listings package martin On 22/02/06, Paul Smith [EMAIL PROTECTED] wrote: Dear All I need to write some pseudocode. Is there some specific package? Or it suffices LyX code? Thanks in advance, Paul
Re: Looking for way of writing pseudocode
Paul Smith wrote: Dear All I need to write some pseudocode. Is there some specific package? Or it suffices LyX code? Thanks in advance, Paul You could use one of the following LaTeX package (Probably there are more): pseudocode alg algorithm2e you need to go to http://www.ctan.org/ and choose the type you prefer
Looking for way of writing pseudocode
Dear All I need to write some pseudocode. Is there some specific package? Or it suffices LyX code? Thanks in advance, Paul
Re: Looking for way of writing pseudocode
lyx code is good. otherwise have a look at the listings package martin On 22/02/06, Paul Smith <[EMAIL PROTECTED]> wrote: > > Dear All > > I need to write some pseudocode. Is there some specific package? Or it > suffices LyX code? > > Thanks in advance, > > Paul >
Re: Looking for way of writing pseudocode
Paul Smith wrote: > Dear All > > I need to write some pseudocode. Is there some specific package? Or it > suffices LyX code? > > Thanks in advance, > > Paul > > You could use one of the following LaTeX package (Probably there are more): pseudocode alg algorithm2e you need to go to http://www.ctan.org/ and choose the type you prefer
Writing Pseudocode
Hi, I am very found by the way Herbert Voss wrote his mathmode document, Voss-Mathmode.pdf. I would like to write my pseudocode in thuse yellow boxes with numbers from the left. How could i create thuse boxes? Also thuse link arent good any more: http://www.educat.hu-berlin.de/~voss/lyx/listings/listings.html http://www.educat.hu-berlin.de/~voss/lyx/algorithm/algorithm.html does someone know the new links? Thanks Hannan
Re: Writing Pseudocode
Hannan Sadar wrote: I am very found by the way Herbert Voss wrote his mathmode document, Voss-Mathmode.pdf. I would like to write my pseudocode in those yellow boxes with numbers from the left. How could I create those boxes? Ask Herbert for the LaTeX-code. Also these links aren't good any more: http://www.educat.hu-berlin.de/~voss/lyx/listings/listings.html http://www.educat.hu-berlin.de/~voss/lyx/algorithm/algorithm.html his site has moved to http://www.texnik.de the listings page is here: http://www.texnik.de/listings/listings.phtml regards Uwe
Writing Pseudocode
Hi, I am very found by the way Herbert Voss wrote his mathmode document, Voss-Mathmode.pdf. I would like to write my pseudocode in thuse yellow boxes with numbers from the left. How could i create thuse boxes? Also thuse link arent good any more: http://www.educat.hu-berlin.de/~voss/lyx/listings/listings.html http://www.educat.hu-berlin.de/~voss/lyx/algorithm/algorithm.html does someone know the new links? Thanks Hannan
Re: Writing Pseudocode
Hannan Sadar wrote: I am very found by the way Herbert Voss wrote his mathmode document, Voss-Mathmode.pdf. I would like to write my pseudocode in those yellow boxes with numbers from the left. How could I create those boxes? Ask Herbert for the LaTeX-code. Also these links aren't good any more: http://www.educat.hu-berlin.de/~voss/lyx/listings/listings.html http://www.educat.hu-berlin.de/~voss/lyx/algorithm/algorithm.html his site has moved to http://www.texnik.de the listings page is here: http://www.texnik.de/listings/listings.phtml regards Uwe
Writing Pseudocode
Hi, I am very found by the way Herbert Voss wrote his mathmode document, "Voss-Mathmode.pdf". I would like to write my pseudocode in thuse yellow boxes with numbers from the left. How could i create thuse boxes? Also thuse link arent good any more: http://www.educat.hu-berlin.de/~voss/lyx/listings/listings.html http://www.educat.hu-berlin.de/~voss/lyx/algorithm/algorithm.html does someone know the new links? Thanks Hannan
Re: Writing Pseudocode
Hannan Sadar wrote: I am very found by the way Herbert Voss wrote his mathmode document, "Voss-Mathmode.pdf". I would like to write my pseudocode in those yellow boxes with numbers from the left. How could I create those boxes? Ask Herbert for the LaTeX-code. Also these links aren't good any more: http://www.educat.hu-berlin.de/~voss/lyx/listings/listings.html > > http://www.educat.hu-berlin.de/~voss/lyx/algorithm/algorithm.html his site has moved to http://www.texnik.de the listings page is here: http://www.texnik.de/listings/listings.phtml regards Uwe
Re: looking for pseudocode class
Thanks Herbert I have started using the "algorithm" package and I like it. http://www.educat.hu-berlin.de/~voss/lyx/algorithm/algorithm.html A few questions: 1- How to remove the automatic numbering of algorithms (floats) ? (and either leave it blank with just the word Algorithm preceding the caption, or with a parameter to specify explicitly the number or label I want ) 2- How to have comments after "endfor" printed ? 3- Is there a way to have margin notes work within the algorithm float? 4- Is there a way to have vertical lines, on the LHS, displayed to link the beginning and end of a loop (e.g., for endfor ) ? thanks Frederic
Re: looking for pseudocode class
Frederic Leymarie wrote: I have started using the "algorithm" package and I like it. http://www.educat.hu-berlin.de/~voss/lyx/algorithm/algorithm.html A few questions: 1- How to remove the automatic numbering of algorithms (floats) ? (and either leave it blank with just the word Algorithm preceding the caption, or with a parameter to specify explicitly the number or label I want ) i hope that Benoit Guillon read this too, because this alogithm-package was created by him. otherwise search in user-mailing list for this subject, than you'll get his email-address. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: looking for pseudocode class
Thanks Herbert I have started using the "algorithm" package and I like it. http://www.educat.hu-berlin.de/~voss/lyx/algorithm/algorithm.html A few questions: 1- How to remove the automatic numbering of algorithms (floats) ? (and either leave it blank with just the word Algorithm preceding the caption, or with a parameter to specify explicitly the number or label I want ) 2- How to have comments after "endfor" printed ? 3- Is there a way to have margin notes work within the algorithm float? 4- Is there a way to have vertical lines, on the LHS, displayed to link the beginning and end of a loop (e.g., for endfor ) ? thanks Frederic
Re: looking for pseudocode class
Frederic Leymarie wrote: I have started using the "algorithm" package and I like it. http://www.educat.hu-berlin.de/~voss/lyx/algorithm/algorithm.html A few questions: 1- How to remove the automatic numbering of algorithms (floats) ? (and either leave it blank with just the word Algorithm preceding the caption, or with a parameter to specify explicitly the number or label I want ) i hope that Benoit Guillon read this too, because this alogithm-package was created by him. otherwise search in user-mailing list for this subject, than you'll get his email-address. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: looking for pseudocode class
Thanks Herbert I have started using the "algorithm" package and I like it. > http://www.educat.hu-berlin.de/~voss/lyx/algorithm/algorithm.html A few questions: 1- How to remove the automatic numbering of algorithms (floats) ? (and either leave it blank with just the word Algorithm preceding the caption, or with a parameter to specify explicitly the number or label I want ) 2- How to have comments after "endfor" printed ? 3- Is there a way to have margin notes work within the algorithm float? 4- Is there a way to have vertical lines, on the LHS, displayed to link the beginning and end of a loop (e.g., for endfor ) ? thanks Frederic
Re: looking for pseudocode class
Frederic Leymarie wrote: > > I have started using the "algorithm" package and I like it. > > > http://www.educat.hu-berlin.de/~voss/lyx/algorithm/algorithm.html > > A few questions: > > 1- How to remove the automatic numbering of algorithms (floats) ? > (and either leave it blank with just the word Algorithm preceding the >caption, > or with a parameter to specify explicitly the number or label I want ) > i hope that Benoit Guillon read this too, because this alogithm-package was created by him. otherwise search in user-mailing list for this subject, than you'll get his email-address. Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: looking for pseudocode class
Frederic Leymarie wrote: Hi where can I find information on a lyx style/class for nicely formating pseudocode in a report ?? what do you understand for pseudocode, some kind like algorithm or programming sourcecode? Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: looking for pseudocode class
Frederic Leymarie wrote: yes, I meant to say, formating code for algorithms. Pseudocode simple means alike sourcecode (C or C++ in my case). for sourcecode http://www.educat.hu-berlin.de/~voss/lyx/listings/listings.html and for algorithm http://www.educat.hu-berlin.de/~voss/lyx/algorithm/algorithm.html Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: looking for pseudocode class
Frederic Leymarie wrote: Hi where can I find information on a lyx style/class for nicely formating pseudocode in a report ?? what do you understand for pseudocode, some kind like algorithm or programming sourcecode? Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: looking for pseudocode class
Frederic Leymarie wrote: yes, I meant to say, formating code for algorithms. Pseudocode simple means alike sourcecode (C or C++ in my case). for sourcecode http://www.educat.hu-berlin.de/~voss/lyx/listings/listings.html and for algorithm http://www.educat.hu-berlin.de/~voss/lyx/algorithm/algorithm.html Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: looking for pseudocode class
Frederic Leymarie wrote: > > Hi > > where can I find information on a lyx style/class > for nicely formating pseudocode in a report ?? what do you understand for pseudocode, some kind like algorithm or programming sourcecode? Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/
Re: looking for pseudocode class
Frederic Leymarie wrote: > > yes, I meant to say, formating code for algorithms. > Pseudocode simple means alike sourcecode (C or C++ in my case). for sourcecode http://www.educat.hu-berlin.de/~voss/lyx/listings/listings.html and for algorithm http://www.educat.hu-berlin.de/~voss/lyx/algorithm/algorithm.html Herbert -- [EMAIL PROTECTED] http://perce.de/lyx/