Vertical line in the side left
Hi all : How put a vertical line, up to down in the left side, with a word above the line in the left corner down. Please, see the example adjunct. Thanks so much Miguel #LyX 1.6.3 created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header \textclass article \begin_preamble % NO ALTERE ESTE PREAMBULO \lhead{Ejemplo \copyright} \usepackage{rotating} \usepackage{graphicx} \usepackage{fancyhdr} \end_preamble \use_default_options true \language spanish \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize default \spacing single \use_hyperref false \papersize default \use_geometry false \use_amsmath 1 \use_esint 1 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle fancy \tracking_changes false \output_changes false \author \end_header \begin_body \begin_layout Standard How make put the line in vertical position, up to down, in the side left, and with the word Example, in the left corner down, above the line. \end_layout \end_body \end_document
Re: Manage numeration pages
Adrian Diaz wrote, (Tue, 14 Jul 2009) I am writting my thesis with lyx 1.6.3 with document class book(more font size) Layout page fancy. i need a roman numeration for: Tables Conts, list of figures and list of tables as : i ii iii iv etc(ascending order) and the others pages with arabic numeration (ascending order too) as 1 2 3 4 etc. The following way works here. [It's taken from the LaTeX preamble used in some LyX help manuals (book and book KOMA-script classes)]. In the LateX preamble add the lines: \let\myTOC\tableofcontents \renewcommand\tableofcontents{% \frontmatter \pdfbookmark[1]{\contentsname}{} \myTOC \mainmatter } \let\myLOF\listoffigures \renewcommand\listoffigures{% \frontmatter \myLOF \mainmatter } \let\myLOT\listoftables \renewcommand\listoftables{% \frontmatter \myLOT \mainmatter } Note: If the document language is Spanish, roman (i, ii, ...) is changed automatically by Small Caps (I, II ...) as it's the standard. Regards Ignacio García
Re: Vertical line in the side left
icebna wrote: Hi all : How put a vertical line, up to down in the left side, with a word above the line in the left corner down. Please, see the example adjunct. Thanks so much Miguel Use a marginal note. In the marginal note, type Example On the next line in the marginal note, make the horizontal line. A line can be made in a number of ways: * A deep table column, with a frame line on one side only. (the line will be narrow) * A box with colored background, narrow width and great height. For some reason, setting the height for a colored box doesn't work. So put a minipage inside, and set the minipage height to 95% of textheight or so. (The line have adjustable thickness above some minimum. It will be red - no choice there it seems.) * Use ERT, for example \rule{0.5cm}{15cm} This is the most flexible way, I think. No limits on line dimensions. If you want a colored line, select the whole ERT box and use Edit-Text Style and set the color. Helge Hafting
How to specify a copier that also copies subdirectories?
Hello, I have a format (TeX, or R files generated using sweave) where there could be associated files generated in subdirectories. I have set up a copier for my formats: LaTeX - python -tt $$s/scripts/ext_copy.py -e tex,aux,bib,bst,sty,eps,pdf $$i $$o R - python -tt $$s/scripts/ext_copy.py -e R,r,Rd $$i $$o It works well, except it ignores files in subdirectories. Is there an option to copy also files from subdirectories (maintaining the subdirectory structure) too? Also, it seems files are not cleared from the temporary dir between each compilation of the LyX file. So, sometimes, I got old files copied too. Is it an option to clean the temp dir before each run? Best, Philippe -- ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Belgium ( ( ( ( ( ..
Re: Manage numeration pages
On 07/15/2009 12:25 AM, Adrian Diaz wrote: Hi friends I am writting my thesis with lyx 1.6.3 with document class book(more font size) Layout page fancy. i need a roman numeration for: Tables Conts, list of figures and list of tables as : i ii iii iv etc(ascending order) and the others pages with arabic numeration (ascending order too) as 1 2 3 4 etc. Could you tell me how i can do it. Before that stuff, put \frontmatter in ERT. After it, where you want arabic, put \mainmatter. rh
AW: WinVista: Scrolling in LyX-window with mouse wheel? [solution]
Helge Hafting wrote: Many non-standard laptop/notebook scrollers do not work with Qt under Windows. Ah, a windows mouse driver fault then. Try complaining to the equipment manufacturer, or microsoft. The manufacturer probably is the one with most interest in making this work. I did to a German newsgroup. The latest version of the mouse driver needs to be separately downloaded from http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=1815fb0a-e223-40bd-8c6a-8f0100c37874displaylang=en. Thanks for your replies. Best wishes, J.
server-goto-file-row goes to line 1
If I type: server-goto-file-row THISFILENAME.lyx 20 into the Lyx command buffer, it always goes to the top of the document. (I'm using Lyx 1.6.2). Am I using the command wrongly or are there other known problems that someone can comment on? Thanks Sam
Re: Vertical line in the side left
With command \rule a vertical line is generated, but I need that in the down left of the line, a text appears, also in vertically above the line, as in the example, but in vertically. Thanks advanced Helge Hafting escribió: icebna wrote: Hi all : How put a vertical line, up to down in the left side, with a word above the line in the left corner down. Please, see the example adjunct. Thanks so much Miguel Use a marginal note. In the marginal note, type Example On the next line in the marginal note, make the horizontal line. A line can be made in a number of ways: * A deep table column, with a frame line on one side only. (the line will be narrow) * A box with colored background, narrow width and great height. For some reason, setting the height for a colored box doesn't work. So put a minipage inside, and set the minipage height to 95% of textheight or so. (The line have adjustable thickness above some minimum. It will be red - no choice there it seems.) * Use ERT, for example \rule{0.5cm}{15cm} This is the most flexible way, I think. No limits on line dimensions. If you want a colored line, select the whole ERT box and use Edit-Text Style and set the color. Helge Hafting
Converter not in /usr/bin; fixing nbsp
Hi, due to some reasons I don't want to put my converter into /usr/bin neither /usr/local/bin. It's, let's say, somewhere in my home directory. But when I put into converter list: /home/me/my_converter - it doesn't work. Yep, path's correct and double checked ;-) The second problem for me is making non-breaking spaces between a single letter and a word. It's necessary in polish typography. It can be done with a simple script: #!/bin/bash if [ $1 ]; then cat $1 | sed ' / [aeiouwzAEIOUWZ] *$/ { N s/ *\([aeiouwzAEIOUWZ]\)\n */ \1~/g }' | sed 's/^ *\([aeiouwzAEIOUWZ]\) */ \1~/g' | sed 's/ *\([aeiouwzAEIOUWZ]\) */ \1~/g' fi but sometimes it breaks my document. Is there a way to run this script only in text blocks, i.e. omit arguments of commands and maths. Tomasz
Re: server-goto-file-row goes to line 1
On 07/15/2009 10:25 AM, Sam Liddicott wrote: If I type: server-goto-file-row THISFILENAME.lyx 20 into the Lyx command buffer, it always goes to the top of the document. (I'm using Lyx 1.6.2). Am I using the command wrongly...? Probably. I suspect you haven't run LaTeX on the file yet. Here's what the docs say: LFUN_SERVER_GOTO_FILE_ROW * Action Sets the cursor position based on the row number of generated TeX file. * Notion This can be useful for DVI inverse-search or detection of the problematic line from LaTeX compilation. Note that before this function can be used export to LaTeX output must occur (in order to map the row numbers). * Syntax server-goto-file-row FILE[.ext] ROW_NUMBER * Params FILE: the filename. Environment variables are expaned in the path. In case this LFUN does not work make sure you are giving correct path to the file.If the file is located inside LyX temporary directory it will be mapped back into the appropriate opened buffer (e.g. for the case of generated .tex file). .ext: extensions will be automatically replaced by .lyx. Note that the row number is that of the LaTeX output file, NOT the LyX file on screen. Richard
Re: Converter not in /usr/bin; fixing nbsp
On 07/15/2009 12:01 PM, Tomasz Kołodziejski wrote: Hi, due to some reasons I don't want to put my converter into /usr/bin neither /usr/local/bin. It's, let's say, somewhere in my home directory. But when I put into converter list: /home/me/my_converter - it doesn't work. Yep, path's correct and double checked ;-) Add this to the bug tracker. I don't have time to check on it right now. Probably you should cc me. In the short term, why not put the converters into your local $HOME/bin? The second problem for me is making non-breaking spaces between a single letter and a word. It's necessary in polish typography. It can be done with a simple script: #!/bin/bash if [ $1 ]; then cat $1 | sed ' / [aeiouwzAEIOUWZ] *$/ { N s/ *\([aeiouwzAEIOUWZ]\)\n */ \1~/g }' | sed 's/^ *\([aeiouwzAEIOUWZ]\) */ \1~/g' | sed 's/ *\([aeiouwzAEIOUWZ]\) */ \1~/g' fi but sometimes it breaks my document. Is there a way to run this script only in text blocks, i.e. omit arguments of commands and maths. A slightly more complicated script will do. You'll need to run through the LyX file and detect when you've hit the sort of inset where you do not want to do this. We do this kind of thing all the time in the lyx2lyx script, which you'll have in /usr/share/lyx/lyx2lyx/. Look e.g. at lyx_1_5.py file. rh
Solved: Autoadding \maketitle destroys layout of my article
Solution of the problem is given on http://www.latex-community.org/forum/viewtopic.php?f=19t=5360 nuke wrote: ...As a result I have two title pages, wrong authors names footnoting, no bibliography... So in order to get a correct document I have to export to latex, correct the text and compile it using another latex editor -- View this message in context: http://n2.nabble.com/Autoadding-%5Cmaketitle-destroys-layout-of-my-article-tp3257199p3264628.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Vertical line in the side left
You can put a vertical line 2pt width and a Text centered above the line at left on all pages of your document with this two commands into an ERT box at the beginning of the document: \AddToShipoutPicture{\psline[linewidth=2pt](2,3)(2,26.5)} \AddToShipoutPicture{\rput(2,27){\large Text}} You will need to put this in your preamble: \usepackage{pstricks,eso-pic,calc,graphicx} Of course you can to change the origin/final line/text co-ordinates depends on the margins on the document and your needs. - Original Message - From: icebna ice...@telefonica.net To: lyx-users@lists.lyx.org Sent: Wednesday, July 15, 2009 9:12 AM Subject: Vertical line in the side left Hi all : How put a vertical line, up to down in the left side, with a word above the line in the left corner down. Please, see the example adjunct. Thanks so much Miguel #LyX 1.6.3 created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header \textclass article \begin_preamble % NO ALTERE ESTE PREAMBULO \lhead{Ejemplo \copyright} \usepackage{rotating} \usepackage{graphicx} \usepackage{fancyhdr} \end_preamble \use_default_options true \language spanish \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize default \spacing single \use_hyperref false \papersize default \use_geometry false \use_amsmath 1 \use_esint 1 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle fancy \tracking_changes false \output_changes false \author \end_header \begin_body \begin_layout Standard How make put the line in vertical position, up to down, in the side left, and with the word Example, in the left corner down, above the line. \end_layout \end_body \end_document
Re: singlespace title
Semih Özmen wrote: Hi, in my schools latex class, title is written in this way.. \vbox{\begin{singlespace}\uppercase\expandafte...@title}\end{singlespace}} however since my title is too long I tried to separate it into 3 lines and used \\ or ragged break for this.. The output is neither double space nor single space distances between lines are not equal... I need it in single spacing as latex class specified.. any comments? Semih Try Control-Enter in lieu of \\. /Paul
Re: server-goto-file-row goes to line 1
rgheck wrote: On 07/15/2009 10:25 AM, Sam Liddicott wrote: If I type: server-goto-file-row THISFILENAME.lyx 20 into the Lyx command buffer, it always goes to the top of the document. (I'm using Lyx 1.6.2). Am I using the command wrongly...? Probably. I suspect you haven't run LaTeX on the file yet. Here's what the docs say: LFUN_SERVER_GOTO_FILE_ROW * Action Sets the cursor position based on the row number of generated TeX file. gah! thats horrific! I mean it's excellent that it can do the reverse mapping of a tex file but it means there is no way to navigate the Lyx file - even if the specified filename ended in .lyx and not .tex My C sources aren't generated via the tex files (partly because it's not simple to get Lyx to export a tex file from a noweb document without running noweb). I really need to be able to navigate to a line (and column even) in the Lyx file. Sam
Re: server-goto-file-row goes to line 1
On 07/15/2009 03:42 PM, Sam Liddicott wrote: My C sources aren't generated via the tex files (partly because it's not simple to get Lyx to export a tex file from a noweb document without running noweb). I really need to be able to navigate to a line (and column even) in the Lyx file. So are you doing this from outside LyX with calls to the lyxserver? If so, then use a for loop or something and call LFUN_DOWN repeatedly. Slow and stupid, but it'll work. rh
aling some headline
Hi, I need to align References' name and TOC' name at the center of document, how can i do this? I am using book class as a basic template. The Lyx version is 1.6.2 Thanks a lot Ricardo Perrone
RE: aling some headline
I need to align References' name and TOC' name at the center of document, how can i do this? I am using book class as a basic template. The Lyx version is 1.6.2 Put in your preamble: \renewcommand\refname{\centering References} Make sure that the option add to toc in your bibliography is turned off. Vincent
RE: aling some headline
\renewcommand\refname{\centering References} Sorry, that doesn't work for book. Vincent
Vertical line in the side left
Hi all : How put a vertical line, up to down in the left side, with a word above the line in the left corner down. Please, see the example adjunct. Thanks so much Miguel #LyX 1.6.3 created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header \textclass article \begin_preamble % NO ALTERE ESTE PREAMBULO \lhead{Ejemplo \copyright} \usepackage{rotating} \usepackage{graphicx} \usepackage{fancyhdr} \end_preamble \use_default_options true \language spanish \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize default \spacing single \use_hyperref false \papersize default \use_geometry false \use_amsmath 1 \use_esint 1 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle fancy \tracking_changes false \output_changes false \author \end_header \begin_body \begin_layout Standard How make put the line in vertical position, up to down, in the side left, and with the word Example, in the left corner down, above the line. \end_layout \end_body \end_document
Re: Manage numeration pages
Adrian Diaz wrote, (Tue, 14 Jul 2009) I am writting my thesis with lyx 1.6.3 with document class book(more font size) Layout page fancy. i need a roman numeration for: Tables Conts, list of figures and list of tables as : i ii iii iv etc(ascending order) and the others pages with arabic numeration (ascending order too) as 1 2 3 4 etc. The following way works here. [It's taken from the LaTeX preamble used in some LyX help manuals (book and book KOMA-script classes)]. In the LateX preamble add the lines: \let\myTOC\tableofcontents \renewcommand\tableofcontents{% \frontmatter \pdfbookmark[1]{\contentsname}{} \myTOC \mainmatter } \let\myLOF\listoffigures \renewcommand\listoffigures{% \frontmatter \myLOF \mainmatter } \let\myLOT\listoftables \renewcommand\listoftables{% \frontmatter \myLOT \mainmatter } Note: If the document language is Spanish, roman (i, ii, ...) is changed automatically by Small Caps (I, II ...) as it's the standard. Regards Ignacio García
Re: Vertical line in the side left
icebna wrote: Hi all : How put a vertical line, up to down in the left side, with a word above the line in the left corner down. Please, see the example adjunct. Thanks so much Miguel Use a marginal note. In the marginal note, type Example On the next line in the marginal note, make the horizontal line. A line can be made in a number of ways: * A deep table column, with a frame line on one side only. (the line will be narrow) * A box with colored background, narrow width and great height. For some reason, setting the height for a colored box doesn't work. So put a minipage inside, and set the minipage height to 95% of textheight or so. (The line have adjustable thickness above some minimum. It will be red - no choice there it seems.) * Use ERT, for example \rule{0.5cm}{15cm} This is the most flexible way, I think. No limits on line dimensions. If you want a colored line, select the whole ERT box and use Edit-Text Style and set the color. Helge Hafting
How to specify a copier that also copies subdirectories?
Hello, I have a format (TeX, or R files generated using sweave) where there could be associated files generated in subdirectories. I have set up a copier for my formats: LaTeX - python -tt $$s/scripts/ext_copy.py -e tex,aux,bib,bst,sty,eps,pdf $$i $$o R - python -tt $$s/scripts/ext_copy.py -e R,r,Rd $$i $$o It works well, except it ignores files in subdirectories. Is there an option to copy also files from subdirectories (maintaining the subdirectory structure) too? Also, it seems files are not cleared from the temporary dir between each compilation of the LyX file. So, sometimes, I got old files copied too. Is it an option to clean the temp dir before each run? Best, Philippe -- ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Belgium ( ( ( ( ( ..
Re: Manage numeration pages
On 07/15/2009 12:25 AM, Adrian Diaz wrote: Hi friends I am writting my thesis with lyx 1.6.3 with document class book(more font size) Layout page fancy. i need a roman numeration for: Tables Conts, list of figures and list of tables as : i ii iii iv etc(ascending order) and the others pages with arabic numeration (ascending order too) as 1 2 3 4 etc. Could you tell me how i can do it. Before that stuff, put \frontmatter in ERT. After it, where you want arabic, put \mainmatter. rh
AW: WinVista: Scrolling in LyX-window with mouse wheel? [solution]
Helge Hafting wrote: Many non-standard laptop/notebook scrollers do not work with Qt under Windows. Ah, a windows mouse driver fault then. Try complaining to the equipment manufacturer, or microsoft. The manufacturer probably is the one with most interest in making this work. I did to a German newsgroup. The latest version of the mouse driver needs to be separately downloaded from http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=1815fb0a-e223-40bd-8c6a-8f0100c37874displaylang=en. Thanks for your replies. Best wishes, J.
server-goto-file-row goes to line 1
If I type: server-goto-file-row THISFILENAME.lyx 20 into the Lyx command buffer, it always goes to the top of the document. (I'm using Lyx 1.6.2). Am I using the command wrongly or are there other known problems that someone can comment on? Thanks Sam
Re: Vertical line in the side left
With command \rule a vertical line is generated, but I need that in the down left of the line, a text appears, also in vertically above the line, as in the example, but in vertically. Thanks advanced Helge Hafting escribió: icebna wrote: Hi all : How put a vertical line, up to down in the left side, with a word above the line in the left corner down. Please, see the example adjunct. Thanks so much Miguel Use a marginal note. In the marginal note, type Example On the next line in the marginal note, make the horizontal line. A line can be made in a number of ways: * A deep table column, with a frame line on one side only. (the line will be narrow) * A box with colored background, narrow width and great height. For some reason, setting the height for a colored box doesn't work. So put a minipage inside, and set the minipage height to 95% of textheight or so. (The line have adjustable thickness above some minimum. It will be red - no choice there it seems.) * Use ERT, for example \rule{0.5cm}{15cm} This is the most flexible way, I think. No limits on line dimensions. If you want a colored line, select the whole ERT box and use Edit-Text Style and set the color. Helge Hafting
Converter not in /usr/bin; fixing nbsp
Hi, due to some reasons I don't want to put my converter into /usr/bin neither /usr/local/bin. It's, let's say, somewhere in my home directory. But when I put into converter list: /home/me/my_converter - it doesn't work. Yep, path's correct and double checked ;-) The second problem for me is making non-breaking spaces between a single letter and a word. It's necessary in polish typography. It can be done with a simple script: #!/bin/bash if [ $1 ]; then cat $1 | sed ' / [aeiouwzAEIOUWZ] *$/ { N s/ *\([aeiouwzAEIOUWZ]\)\n */ \1~/g }' | sed 's/^ *\([aeiouwzAEIOUWZ]\) */ \1~/g' | sed 's/ *\([aeiouwzAEIOUWZ]\) */ \1~/g' fi but sometimes it breaks my document. Is there a way to run this script only in text blocks, i.e. omit arguments of commands and maths. Tomasz
Re: server-goto-file-row goes to line 1
On 07/15/2009 10:25 AM, Sam Liddicott wrote: If I type: server-goto-file-row THISFILENAME.lyx 20 into the Lyx command buffer, it always goes to the top of the document. (I'm using Lyx 1.6.2). Am I using the command wrongly...? Probably. I suspect you haven't run LaTeX on the file yet. Here's what the docs say: LFUN_SERVER_GOTO_FILE_ROW * Action Sets the cursor position based on the row number of generated TeX file. * Notion This can be useful for DVI inverse-search or detection of the problematic line from LaTeX compilation. Note that before this function can be used export to LaTeX output must occur (in order to map the row numbers). * Syntax server-goto-file-row FILE[.ext] ROW_NUMBER * Params FILE: the filename. Environment variables are expaned in the path. In case this LFUN does not work make sure you are giving correct path to the file.If the file is located inside LyX temporary directory it will be mapped back into the appropriate opened buffer (e.g. for the case of generated .tex file). .ext: extensions will be automatically replaced by .lyx. Note that the row number is that of the LaTeX output file, NOT the LyX file on screen. Richard
Re: Converter not in /usr/bin; fixing nbsp
On 07/15/2009 12:01 PM, Tomasz Kołodziejski wrote: Hi, due to some reasons I don't want to put my converter into /usr/bin neither /usr/local/bin. It's, let's say, somewhere in my home directory. But when I put into converter list: /home/me/my_converter - it doesn't work. Yep, path's correct and double checked ;-) Add this to the bug tracker. I don't have time to check on it right now. Probably you should cc me. In the short term, why not put the converters into your local $HOME/bin? The second problem for me is making non-breaking spaces between a single letter and a word. It's necessary in polish typography. It can be done with a simple script: #!/bin/bash if [ $1 ]; then cat $1 | sed ' / [aeiouwzAEIOUWZ] *$/ { N s/ *\([aeiouwzAEIOUWZ]\)\n */ \1~/g }' | sed 's/^ *\([aeiouwzAEIOUWZ]\) */ \1~/g' | sed 's/ *\([aeiouwzAEIOUWZ]\) */ \1~/g' fi but sometimes it breaks my document. Is there a way to run this script only in text blocks, i.e. omit arguments of commands and maths. A slightly more complicated script will do. You'll need to run through the LyX file and detect when you've hit the sort of inset where you do not want to do this. We do this kind of thing all the time in the lyx2lyx script, which you'll have in /usr/share/lyx/lyx2lyx/. Look e.g. at lyx_1_5.py file. rh
Solved: Autoadding \maketitle destroys layout of my article
Solution of the problem is given on http://www.latex-community.org/forum/viewtopic.php?f=19t=5360 nuke wrote: ...As a result I have two title pages, wrong authors names footnoting, no bibliography... So in order to get a correct document I have to export to latex, correct the text and compile it using another latex editor -- View this message in context: http://n2.nabble.com/Autoadding-%5Cmaketitle-destroys-layout-of-my-article-tp3257199p3264628.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Vertical line in the side left
You can put a vertical line 2pt width and a Text centered above the line at left on all pages of your document with this two commands into an ERT box at the beginning of the document: \AddToShipoutPicture{\psline[linewidth=2pt](2,3)(2,26.5)} \AddToShipoutPicture{\rput(2,27){\large Text}} You will need to put this in your preamble: \usepackage{pstricks,eso-pic,calc,graphicx} Of course you can to change the origin/final line/text co-ordinates depends on the margins on the document and your needs. - Original Message - From: icebna ice...@telefonica.net To: lyx-users@lists.lyx.org Sent: Wednesday, July 15, 2009 9:12 AM Subject: Vertical line in the side left Hi all : How put a vertical line, up to down in the left side, with a word above the line in the left corner down. Please, see the example adjunct. Thanks so much Miguel #LyX 1.6.3 created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header \textclass article \begin_preamble % NO ALTERE ESTE PREAMBULO \lhead{Ejemplo \copyright} \usepackage{rotating} \usepackage{graphicx} \usepackage{fancyhdr} \end_preamble \use_default_options true \language spanish \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize default \spacing single \use_hyperref false \papersize default \use_geometry false \use_amsmath 1 \use_esint 1 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle fancy \tracking_changes false \output_changes false \author \end_header \begin_body \begin_layout Standard How make put the line in vertical position, up to down, in the side left, and with the word Example, in the left corner down, above the line. \end_layout \end_body \end_document
Re: singlespace title
Semih Özmen wrote: Hi, in my schools latex class, title is written in this way.. \vbox{\begin{singlespace}\uppercase\expandafte...@title}\end{singlespace}} however since my title is too long I tried to separate it into 3 lines and used \\ or ragged break for this.. The output is neither double space nor single space distances between lines are not equal... I need it in single spacing as latex class specified.. any comments? Semih Try Control-Enter in lieu of \\. /Paul
Re: server-goto-file-row goes to line 1
rgheck wrote: On 07/15/2009 10:25 AM, Sam Liddicott wrote: If I type: server-goto-file-row THISFILENAME.lyx 20 into the Lyx command buffer, it always goes to the top of the document. (I'm using Lyx 1.6.2). Am I using the command wrongly...? Probably. I suspect you haven't run LaTeX on the file yet. Here's what the docs say: LFUN_SERVER_GOTO_FILE_ROW * Action Sets the cursor position based on the row number of generated TeX file. gah! thats horrific! I mean it's excellent that it can do the reverse mapping of a tex file but it means there is no way to navigate the Lyx file - even if the specified filename ended in .lyx and not .tex My C sources aren't generated via the tex files (partly because it's not simple to get Lyx to export a tex file from a noweb document without running noweb). I really need to be able to navigate to a line (and column even) in the Lyx file. Sam
Re: server-goto-file-row goes to line 1
On 07/15/2009 03:42 PM, Sam Liddicott wrote: My C sources aren't generated via the tex files (partly because it's not simple to get Lyx to export a tex file from a noweb document without running noweb). I really need to be able to navigate to a line (and column even) in the Lyx file. So are you doing this from outside LyX with calls to the lyxserver? If so, then use a for loop or something and call LFUN_DOWN repeatedly. Slow and stupid, but it'll work. rh
aling some headline
Hi, I need to align References' name and TOC' name at the center of document, how can i do this? I am using book class as a basic template. The Lyx version is 1.6.2 Thanks a lot Ricardo Perrone
RE: aling some headline
I need to align References' name and TOC' name at the center of document, how can i do this? I am using book class as a basic template. The Lyx version is 1.6.2 Put in your preamble: \renewcommand\refname{\centering References} Make sure that the option add to toc in your bibliography is turned off. Vincent
RE: aling some headline
\renewcommand\refname{\centering References} Sorry, that doesn't work for book. Vincent
Vertical line in the side left
Hi all : How put a vertical line, up to down in the left side, with a word above the line in the left corner down. Please, see the example adjunct. Thanks so much Miguel #LyX 1.6.3 created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header \textclass article \begin_preamble % NO ALTERE ESTE PREAMBULO \lhead{Ejemplo \copyright} \usepackage{rotating} \usepackage{graphicx} \usepackage{fancyhdr} \end_preamble \use_default_options true \language spanish \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize default \spacing single \use_hyperref false \papersize default \use_geometry false \use_amsmath 1 \use_esint 1 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle fancy \tracking_changes false \output_changes false \author "" \end_header \begin_body \begin_layout Standard How make put the line in vertical position, up to down, in the side left, and with the word Example, in the left corner down, above the line. \end_layout \end_body \end_document
Re: Manage numeration pages
Adrian Diaz wrote, (Tue, 14 Jul 2009) > I am writting my thesis with lyx 1.6.3 with document class book(more font > size) Layout page fancy. > i need a roman numeration for: Tables Conts, list of figures and list of > tables as : i ii iii iv etc(ascending order) > and the others pages with arabic numeration (ascending order too) as 1 2 3 4 > etc. The following way works here. [It's taken from the LaTeX preamble used in some LyX help manuals (book and book KOMA-script classes)]. In the LateX preamble add the lines: \let\myTOC\tableofcontents \renewcommand\tableofcontents{% \frontmatter \pdfbookmark[1]{\contentsname}{} \myTOC \mainmatter } \let\myLOF\listoffigures \renewcommand\listoffigures{% \frontmatter \myLOF \mainmatter } \let\myLOT\listoftables \renewcommand\listoftables{% \frontmatter \myLOT \mainmatter } Note: If the document language is Spanish, roman (i, ii, ...) is changed automatically by Small Caps (I, II ...) as it's the standard. Regards Ignacio García
Re: Vertical line in the side left
icebna wrote: Hi all : How put a vertical line, up to down in the left side, with a word above the line in the left corner down. Please, see the example adjunct. Thanks so much Miguel Use a marginal note. In the marginal note, type "Example" On the next line in the marginal note, make the horizontal line. A line can be made in a number of ways: * A deep table column, with a frame line on one side only. (the line will be narrow) * A box with colored background, narrow width and great height. For some reason, setting the height for a colored box doesn't work. So put a minipage inside, and set the minipage height to 95% of textheight or so. (The line have adjustable thickness above some minimum. It will be red - no choice there it seems.) * Use ERT, for example \rule{0.5cm}{15cm} This is the most flexible way, I think. No limits on line dimensions. If you want a colored line, select the whole ERT box and use "Edit->Text Style" and set the color. Helge Hafting
How to specify a copier that also copies subdirectories?
Hello, I have a format (TeX, or R files generated using sweave) where there could be associated files generated in subdirectories. I have set up a copier for my formats: LaTeX -> python -tt $$s/scripts/ext_copy.py -e tex,aux,bib,bst,sty,eps,pdf $$i $$o R -> python -tt $$s/scripts/ext_copy.py -e R,r,Rd $$i $$o It works well, except it ignores files in subdirectories. Is there an option to copy also files from subdirectories (maintaining the subdirectory structure) too? Also, it seems files are not cleared from the temporary dir between each compilation of the LyX file. So, sometimes, I got old files copied too. Is it an option to clean the temp dir before each run? Best, Philippe -- ..<°}))>< ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology of Aquatic Systems ) ) ) ) ) Mons-Hainaut University, Belgium ( ( ( ( ( ..
Re: Manage numeration pages
On 07/15/2009 12:25 AM, Adrian Diaz wrote: Hi friends I am writting my thesis with lyx 1.6.3 with document class book(more font size) Layout page fancy. i need a roman numeration for: Tables Conts, list of figures and list of tables as : i ii iii iv etc(ascending order) and the others pages with arabic numeration (ascending order too) as 1 2 3 4 etc. Could you tell me how i can do it. Before that stuff, put "\frontmatter" in ERT. After it, where you want arabic, put "\mainmatter". rh
AW: WinVista: Scrolling in LyX-window with mouse wheel? [solution]
Helge Hafting wrote: Many non-standard laptop/notebook scrollers do not work with Qt under Windows. Ah, a windows mouse driver fault then. Try complaining to the equipment manufacturer, or microsoft. The manufacturer probably is the one with most interest in making this work. I did to a German newsgroup. The latest version of the mouse driver needs to be separately downloaded from http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=1815fb0a-e223-40bd-8c6a-8f0100c37874=en. Thanks for your replies. Best wishes, J.
server-goto-file-row goes to line 1
If I type: server-goto-file-row THISFILENAME.lyx 20 into the Lyx command buffer, it always goes to the top of the document. (I'm using Lyx 1.6.2). Am I using the command wrongly or are there other known problems that someone can comment on? Thanks Sam
Re: Vertical line in the side left
With command \rule a vertical line is generated, but I need that in the down left of the line, a text appears, also in vertically above the line, as in the example, but in vertically. Thanks advanced Helge Hafting escribió: icebna wrote: Hi all : How put a vertical line, up to down in the left side, with a word above the line in the left corner down. Please, see the example adjunct. Thanks so much Miguel Use a marginal note. In the marginal note, type "Example" On the next line in the marginal note, make the horizontal line. A line can be made in a number of ways: * A deep table column, with a frame line on one side only. (the line will be narrow) * A box with colored background, narrow width and great height. For some reason, setting the height for a colored box doesn't work. So put a minipage inside, and set the minipage height to 95% of textheight or so. (The line have adjustable thickness above some minimum. It will be red - no choice there it seems.) * Use ERT, for example \rule{0.5cm}{15cm} This is the most flexible way, I think. No limits on line dimensions. If you want a colored line, select the whole ERT box and use "Edit->Text Style" and set the color. Helge Hafting
Converter not in /usr/bin; fixing nbsp
Hi, due to some reasons I don't want to put my "converter" into /usr/bin neither /usr/local/bin. It's, let's say, somewhere in my home directory. But when I put into converter list: /home/me/my_converter - it doesn't work. Yep, path's correct and double checked ;-) The second problem for me is making non-breaking spaces between a single letter and a word. It's necessary in polish typography. It can be done with a simple script: #!/bin/bash if [ "$1" ]; then cat "$1" | sed ' / [aeiouwzAEIOUWZ] *$/ { N s/ *\([aeiouwzAEIOUWZ]\)\n */ \1~/g }' | sed 's/^ *\([aeiouwzAEIOUWZ]\) */ \1~/g' | sed 's/ *\([aeiouwzAEIOUWZ]\) */ \1~/g' fi but sometimes it breaks my document. Is there a way to run this script only in text blocks, i.e. omit arguments of commands and maths. Tomasz
Re: server-goto-file-row goes to line 1
On 07/15/2009 10:25 AM, Sam Liddicott wrote: If I type: server-goto-file-row THISFILENAME.lyx 20 into the Lyx command buffer, it always goes to the top of the document. (I'm using Lyx 1.6.2). Am I using the command wrongly...? Probably. I suspect you haven't run LaTeX on the file yet. Here's what the docs say: LFUN_SERVER_GOTO_FILE_ROW * Action Sets the cursor position based on the row number of generated TeX file. * Notion This can be useful for DVI inverse-search or detection of the problematic line from LaTeX compilation. Note that before this function can be used export to LaTeX output must occur (in order to map the row numbers). * Syntax server-goto-file-row* Params : the filename. Environment variables are expaned in the path. In case this LFUN does not work make sure you are giving correct path to the file.If the file is located inside LyX temporary directory it will be mapped back into the appropriate opened buffer (e.g. for the case of generated .tex file). .ext: extensions will be automatically replaced by .lyx. Note that the row number is that of the LaTeX output file, NOT the LyX file on screen. Richard
Re: Converter not in /usr/bin; fixing nbsp
On 07/15/2009 12:01 PM, Tomasz Kołodziejski wrote: Hi, due to some reasons I don't want to put my "converter" into /usr/bin neither /usr/local/bin. It's, let's say, somewhere in my home directory. But when I put into converter list: /home/me/my_converter - it doesn't work. Yep, path's correct and double checked ;-) Add this to the bug tracker. I don't have time to check on it right now. Probably you should cc me. In the short term, why not put the converters into your local $HOME/bin? The second problem for me is making non-breaking spaces between a single letter and a word. It's necessary in polish typography. It can be done with a simple script: #!/bin/bash if [ "$1" ]; then cat "$1" | sed ' / [aeiouwzAEIOUWZ] *$/ { N s/ *\([aeiouwzAEIOUWZ]\)\n */ \1~/g }' | sed 's/^ *\([aeiouwzAEIOUWZ]\) */ \1~/g' | sed 's/ *\([aeiouwzAEIOUWZ]\) */ \1~/g' fi but sometimes it breaks my document. Is there a way to run this script only in text blocks, i.e. omit arguments of commands and maths. A slightly more complicated script will do. You'll need to run through the LyX file and detect when you've hit the sort of inset where you do not want to do this. We do this kind of thing all the time in the lyx2lyx script, which you'll have in /usr/share/lyx/lyx2lyx/. Look e.g. at lyx_1_5.py file. rh
Solved: Autoadding \maketitle destroys layout of my article
Solution of the problem is given on http://www.latex-community.org/forum/viewtopic.php?f=19=5360 nuke wrote: > > ...As a result I have two title pages, wrong authors names footnoting, no > bibliography... So in order to get a correct document I have to export to > latex, correct the text and compile it using another latex editor > -- View this message in context: http://n2.nabble.com/Autoadding-%5Cmaketitle-destroys-layout-of-my-article-tp3257199p3264628.html Sent from the LyX - Users mailing list archive at Nabble.com.
Re: Vertical line in the side left
You can put a vertical line 2pt width and a "Text" centered above the line at left on all pages of your document with this two commands into an ERT box at the beginning of the document: \AddToShipoutPicture{\psline[linewidth=2pt](2,3)(2,26.5)} \AddToShipoutPicture{\rput(2,27){\large Text}} You will need to put this in your preamble: \usepackage{pstricks,eso-pic,calc,graphicx} Of course you can to change the origin/final line/text co-ordinates depends on the margins on the document and your needs. - Original Message - From: "icebna"To: Sent: Wednesday, July 15, 2009 9:12 AM Subject: Vertical line in the side left Hi all : How put a vertical line, up to down in the left side, with a word above the line in the left corner down. Please, see the example adjunct. Thanks so much Miguel #LyX 1.6.3 created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header \textclass article \begin_preamble % NO ALTERE ESTE PREAMBULO \lhead{Ejemplo \copyright} \usepackage{rotating} \usepackage{graphicx} \usepackage{fancyhdr} \end_preamble \use_default_options true \language spanish \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize default \spacing single \use_hyperref false \papersize default \use_geometry false \use_amsmath 1 \use_esint 1 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle fancy \tracking_changes false \output_changes false \author "" \end_header \begin_body \begin_layout Standard How make put the line in vertical position, up to down, in the side left, and with the word Example, in the left corner down, above the line. \end_layout \end_body \end_document
Re: singlespace title
Semih Özmen wrote: Hi, in my schools latex class, title is written in this way.. \vbox{\begin{singlespace}\uppercase\expandafte...@title}\end{singlespace}} however since my title is too long I tried to separate it into 3 lines and used \\ or ragged break for this.. The output is neither double space nor single space distances between lines are not equal... I need it in single spacing as latex class specified.. any comments? Semih Try Control-Enter in lieu of \\. /Paul
Re: server-goto-file-row goes to line 1
rgheck wrote: On 07/15/2009 10:25 AM, Sam Liddicott wrote: If I type: server-goto-file-row THISFILENAME.lyx 20 into the Lyx command buffer, it always goes to the top of the document. (I'm using Lyx 1.6.2). Am I using the command wrongly...? Probably. I suspect you haven't run LaTeX on the file yet. Here's what the docs say: LFUN_SERVER_GOTO_FILE_ROW * Action Sets the cursor position based on the row number of generated TeX file. gah! thats horrific! I mean it's excellent that it can do the reverse mapping of a tex file but it means there is no way to navigate the Lyx file - even if the specified filename ended in .lyx and not .tex My C sources aren't generated via the tex files (partly because it's not simple to get Lyx to export a tex file from a noweb document without running noweb). I really need to be able to navigate to a line (and column even) in the Lyx file. Sam
Re: server-goto-file-row goes to line 1
On 07/15/2009 03:42 PM, Sam Liddicott wrote: My C sources aren't generated via the tex files (partly because it's not simple to get Lyx to export a tex file from a noweb document without running noweb). I really need to be able to navigate to a line (and column even) in the Lyx file. So are you doing this from outside LyX with calls to the lyxserver? If so, then use a for loop or something and call LFUN_DOWN repeatedly. Slow and stupid, but it'll work. rh
aling some headline
Hi, I need to align References' name and TOC' name at the center of document, how can i do this? I am using book class as a basic template. The Lyx version is 1.6.2 Thanks a lot Ricardo Perrone
RE: aling some headline
>I need to align References' name and TOC' name at the >center of document, how can i do this? I am using book >class as a basic template. The Lyx version is 1.6.2 Put in your preamble: \renewcommand\refname{\centering References} Make sure that the option "add to toc" in your bibliography is turned off. Vincent
RE: aling some headline
>\renewcommand\refname{\centering References} Sorry, that doesn't work for book. Vincent