Re: Outline for giving speeches
On 12/11/2022 17:30, Lou wrote: Hi Steve and Axel, Thank you very much for responding. ... I can't get this to work. The fonts change, but the numbers do not change to \Roman (or whatever they are set to in the renewcommand), and indention doesn't happen. Is there something else I need to do besides placing your code in the preamble? Lou The advice given by Steve Litt is probably the best, but if you want to do this in Lyx/Latex then the attached examples show a way to do it (assuming I understand your needs) This is a bit of a hack as Latex very much wants to be in control of layout. In the preamble there are a series of newcommands and renewcommands for each level. In the newcommand there is the indent for the header and in the following renewcommand at the very end is a leftskip which sets the indent for the following blocks of text. Change these to what you want. In addition you may want to change the font at each level in which case the standard Lyx methods can be used. As you can see from the pdf the numbering is in alpha/roman etc as defined in the preamble. If your set up is not doing this then query operating system/Lyx version etc. Hope that helps - good luck -- Steve Hnizdur MWE99.lyx Description: application/lyx MWE99.pdf Description: Adobe PDF document -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Outline for giving speeches
On 12/11/2022 03:54, Lou wrote: On 11/11/22 21:08, Lou wrote: How can I change Lyx sectioning to look like this: I. Level 1 A. Level 2 B. Level 2 1. Level 3 2. Level 3 a. Level 4 b. Level 4 II. Level 1 The purpose being to use Lyx for making outlines for giving speeches. Thanks for any help. Lou Perhaps the following will make clearer what I would like: I. Section A. Subsection B. Subsection 1. Subsubsection 2. Subsubsection a. Paragraph b. Paragraph i. Subparagraph ii. Subparagraph II. Section Try adding \setcounter{tocdepth}{5} \setcounter{secnumdepth}{5} \renewcommand{\section}{\@startsection{section} {1}% {level} {0pt}%{indent} {-3.5ex plus -1ex minus -0.2ex}% {beforeskip} {2.3ex plus 0.2ex}% {afterskip} {\normalfont\Huge\bfseries}% {style} } \renewcommand{\thesection}{\Roman{section}.} \renewcommand{\subsection}{\@startsection{subsection} {2}% {level} {30pt}% {indent} {-3.5ex plus -1ex minus -0.2ex}% {beforeskip} {2.3ex plus 0.2ex}% {afterskip} {\normalfont\Large\bfseries}% {style} } \renewcommand{\thesubsection}{\Alph{subsection}.} \renewcommand{\subsubsection}{\@startsection{subsubsection} {3}% {level} {40pt}% {indent} {-3.5ex plus -1ex minus -0.2ex}% {beforeskip} {2.3ex plus 0.2ex}% {afterskip} {\normalfont\bfseries}% {style} } \renewcommand{\thesubsubsection}{\arabic{subsubsection}.} \renewcommand{\paragraph}{\@startsection{paragraph} {4}% {level} {50pt}% {indent} {-3.5ex plus -1ex minus -0.2ex}% {beforeskip} {2.3ex plus 0.2ex}% {afterskip} {\normalfont\small\bfseries}% {style} } \renewcommand{\theparagraph}{\alph{paragraph}.} \renewcommand{\subparagraph}{\@startsection{subparagraph} {5}% {level} {60pt}% {indent} {-3.5ex plus -1ex minus -0.2ex}% {beforeskip} {2.3ex plus 0.2ex}% {afterskip} {\normalfont\tiny\bfseries}% {style} } \renewcommand{\thesubparagraph}{\roman{subparagraph}.} to your preamble. The reneacommands for section ... subparagraph contain formatting commands which you can set to whatever you fancy. I've put some possible values in to show some of the possibilities. The indent and style lines are hopefully obvious. A bit of experimentation will give the effect you want. This works for me with the basic article style. Hope that helps. -- Steve Hnizdur -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Section references
Hi I would like to show in - TOC, - Headings and - the heading to a section a simple number , but when referencing it in the text body, display it as .. I have tried titleformat which just affects the heading to a section and overrides the setting \thesection which affects all of TOC, Headings (using fancyhdr) and references. Neither prettyref or refstyle seem to provide this facility. Ideally it would be nice to set \thesection and have some way to just format the references. There is an obvious clunky way of putting "Section of Chapter " in the text but I would like to avoid this if possible. Hopefully this makes sense and any thoughts would be very welcome. I'm using 2.3.6.1 on Ubuntu 18.04. -- Steve Hnizdur -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Brazilian Portuguese
Hi Solved. Needed texlive-lang-portuguese. Thought I had it but apparently not! Thanks for your help. On 01/04/2020 09:34, José Abílio Matos wrote: On Wednesday, 1 April 2020 09.21.39 WEST Steve Hnizdur wrote: > Hi > > Attached is a MWE. > > Error is: > > "! Package babel Error: You haven't defined the language brazil yet. > > See the babel package documentation for explanation. > Type H for immediate help. > ... > > l.12 \selectlanguage{brazil}" > > heers That works for me flawlessly. :-) What is your Operating System and latex distribution? For me, in linux and texlive, the support for Brazilian Portuguese is in babel. $ ll /usr/share/texlive/texmf-dist/tex/generic/babel/locale/pt/ total 48 -rw-r--r--. 1 root root 129 Jan 4 2018 babel-brazilian.tex -rw-r--r--. 1 root root 339 Jun 26 2017 babel-portuguese-brazil.tex -rw-r--r--. 1 root root 129 Jan 4 2018 babel-portuguese-br.tex -rw-r--r--. 1 root root 339 Jun 26 2017 babel-portuguese-portugal.tex -rw-r--r--. 1 root root 131 Jan 4 2018 babel-portuguese-pt.tex -rw-r--r--. 1 root root 336 Jun 26 2017 babel-portuguese.tex -rw-r--r--. 1 root root 4333 Sep 19 2017 babel-pt-BR.ini -rw-r--r--. 1 root root 4150 Sep 19 2017 babel-pt.ini -rw-r--r--. 1 root root 4260 Sep 19 2017 babel-pt-PT.ini -- José Abílio -- Steve Hnizdur -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Brazilian Portuguese
Hi I'm using Ubuntu 18.04 with all updates. Also apt-cache policy texlive texlive: Installed: (none) Candidate: 2017.20180305-1 Version table: 2017.20180305-1 500 500 http://gb.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages 500 http://gb.archive.ubuntu.com/ubuntu bionic/universe i386 Packages I get ls -l /usr/share/texlive/texmf-dist/tex/generic/babel/locale/pt/ total 48 -rw-r--r-- 1 root root 129 Jan 4 2018 babel-brazilian.tex -rw-r--r-- 1 root root 339 Jun 26 2017 babel-portuguese-brazil.tex -rw-r--r-- 1 root root 129 Jan 4 2018 babel-portuguese-br.tex -rw-r--r-- 1 root root 339 Jun 26 2017 babel-portuguese-portugal.tex -rw-r--r-- 1 root root 131 Jan 4 2018 babel-portuguese-pt.tex -rw-r--r-- 1 root root 336 Jun 26 2017 babel-portuguese.tex -rw-r--r-- 1 root root 4333 Sep 19 2017 babel-pt-BR.ini -rw-r--r-- 1 root root 4150 Sep 19 2017 babel-pt.ini -rw-r--r-- 1 root root 4260 Sep 19 2017 babel-pt-PT.ini which is identical to yours. Hope that helps, thanks for your speedy replies. On 01/04/2020 09:34, José Abílio Matos wrote: On Wednesday, 1 April 2020 09.21.39 WEST Steve Hnizdur wrote: > Hi > > Attached is a MWE. > > Error is: > > "! Package babel Error: You haven't defined the language brazil yet. > > See the babel package documentation for explanation. > Type H for immediate help. > ... > > l.12 \selectlanguage{brazil}" > > heers That works for me flawlessly. :-) What is your Operating System and latex distribution? For me, in linux and texlive, the support for Brazilian Portuguese is in babel. $ ll /usr/share/texlive/texmf-dist/tex/generic/babel/locale/pt/ total 48 -rw-r--r--. 1 root root 129 Jan 4 2018 babel-brazilian.tex -rw-r--r--. 1 root root 339 Jun 26 2017 babel-portuguese-brazil.tex -rw-r--r--. 1 root root 129 Jan 4 2018 babel-portuguese-br.tex -rw-r--r--. 1 root root 339 Jun 26 2017 babel-portuguese-portugal.tex -rw-r--r--. 1 root root 131 Jan 4 2018 babel-portuguese-pt.tex -rw-r--r--. 1 root root 336 Jun 26 2017 babel-portuguese.tex -rw-r--r--. 1 root root 4333 Sep 19 2017 babel-pt-BR.ini -rw-r--r--. 1 root root 4150 Sep 19 2017 babel-pt.ini -rw-r--r--. 1 root root 4260 Sep 19 2017 babel-pt-PT.ini -- José Abílio -- Steve Hnizdur -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Brazilian Portuguese
Hi Attached is a MWE. Error is: "! Package babel Error: You haven't defined the language brazil yet. See the babel package documentation for explanation. Type H for immediate help. ... l.12 \selectlanguage{brazil}" heers On 01/04/2020 09:05, José Abílio Matos wrote: On Wednesday, 1 April 2020 08.55.06 WEST Steve Hnizdur wrote: > Hi > > I need to included some Brazilian Portuguese in an English document. > When I do this through standard Lyx methods, Lyx automatically adds the > option "brazil" to the document class in the preamble. Unfortunately > this stops the document compiling to a PDF with an error of Unknown option. > > The same error occurs if the whole document is set in Brazilian Portuguese. > > Any way round this other than editing the tex file or using another > language? > > Cheers. It seems difficult to understand the cause without further information: What document class are you using? What is the precise error message you are getting? Regards, :-) -- José Abílio -- Steve Hnizdur Brazil.lyx Description: application/lyx -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Brazilian Portuguese
Hi I need to included some Brazilian Portuguese in an English document. When I do this through standard Lyx methods, Lyx automatically adds the option "brazil" to the document class in the preamble. Unfortunately this stops the document compiling to a PDF with an error of Unknown option. The same error occurs if the whole document is set in Brazilian Portuguese. Any way round this other than editing the tex file or using another language? Cheers. -- Steve Hnizdur -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Hyperref support
On 19/03/2020 13:55, Daniel wrote: On 2020-03-19 14:42, Richard Kimberly Heck wrote: On 3/19/20 3:01 AM, Daniel wrote: On 2020-03-18 14:59, Steve Hnizdur wrote: Hi When "Use Hyperref Support" is checked in PDF properties Lyx automatically inserts \usepackage[unicode=true, bookmarks=false, breaklinks=false,pdfborder={0 0 1},backref=section,colorlinks=false] {hyperref} in the preamble. Any ideas where all these options come from? are they hard coded? Setting "unicode=false" in additional options doesn't seem to override the "unicode=true". So if unicode=true is causing a problem (in particular trying to redefine \C or \G) then this all has to added manually. MWE attached. Using Lyx 2.3.4.2 on Ubuntu 18.04 Hi Yes, these options come from settings in the Hyperref dialog. "bookmarks=..." = "Generate bookmars (toc)" "breaklinks=..." = "Break links over lines" "pdfborder=..." = "No frames around links" "colorlinks=..." = "Color links" "backref=..." = "Backreferences" However, there seems to be no option for the "unicode=..." which seems like an oversight. And the biggest problem is that according to the manual: Note however that some options (for example unicode) can only be used as packge options,and not in \hypersetup as the option settings are processed as the package is read. (p. 6) So, unicode=false has no effect as an additional option. My guess is that this is a bug in LyX but others might know better. Well, the code is: // Since LyX uses unicode, also set the PDF strings to unicode strings // with the hyperref option "unicode". (With Xe/LuaTeX and pTeX, // unicode=true is the default, with Japanese (platex), the option // leads to errors (even if the input encoding is UTF-8).) if (!runparams.isFullUnicode() && !runparams.use_japanese) opt += "unicode=true,"; That is: LyX outputs unicode itself in some cases, so setting unicode=false could lead to errors. Still, it might be worth a document preference on this. Riki An alternative might be to set the "Additional Options" via the package options rather than hypersetup. Daniel Thank you for your responses. I can't say I fully understand why Lyx needs to be as it is; I'm generally against hard coded parameters. I will work round by manually coding the preamble. Cheers -- Steve Hnizdur -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Hyperref support
Hi When "Use Hyperref Support" is checked in PDF properties Lyx automatically inserts \usepackage[unicode=true, bookmarks=false, breaklinks=false,pdfborder={0 0 1},backref=section,colorlinks=false] {hyperref} in the preamble. Any ideas where all these options come from? are they hard coded? Setting "unicode=false" in additional options doesn't seem to override the "unicode=true". So if unicode=true is causing a problem (in particular trying to redefine \C or \G) then this all has to added manually. MWE attached. Using Lyx 2.3.4.2 on Ubuntu 18.04 -- Steve Hnizdur test.lyx Description: application/lyx -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
More input problems with xy-pic
Hi Following on from my last post about Lyx not allowing certain characters with xy-pic in math mode, I am now trying to use this MWE code to produce a label with an embedded linefeed. \xymatrix{A\ar[r]^*+\txt{X\\Y}} It should produce a label with X on top of Y. It works in an ERT fine. The problem is with Lyx math mode. I can get over the ^ character by entering A\ar[r]\sp*+\txt{XY} but Lyx will not allow the \\ between the X and Y and so the linefeed doesn't work. Is there some Lyx magic I'm missing or do I just need to ERT. Many thanks -- Steve Hnizdur
Re: Spaces in math formulae
On 01/07/2019 18:50, Paul A. Rubin wrote: On 7/1/19 2:43 AM, Steve Hnizdur wrote: On 01/07/2019 00:58, Paul A. Rubin wrote: On 6/30/19 3:55 AM, Steve Hnizdur wrote: On 29/06/2019 17:24, Paul A. Rubin wrote: On 6/29/19 7:43 AM, Steve Hnizdur wrote: Hi I need to use this code \[\newdir{ >}{{}*!/-10pt/@{>}}\xymatrix{X\ar[r]\ar@{ >->}[d] & Y\ar@{ >->}[d]\\Z \ar[r] & W}\] in order to move the tail of the vertical arrows away from the entries X and Y. This works in an ERT but when inputting in native LYX it strips out the important spaces in \newdir{ >} and @{ >->}. Is there any way to force LYX to accept these spaces. Many thanks I think the problem is that you named your new arrowhead " >" (meaning the name contains a space). Changing that to something else seems to fix the problem. Based on an example in the LyX xy-pic help file, I used a vertical bar (so the first argument to \newdir is "|>"). I've attached a working (for me at least) LyX file. Paul > Hi Thanks for that. I had taken the code directly from the XY-pic User’s Guide. Now, having played with it ANY allowable LYX character seems to work e.g. x. There have been other instances where LYX will not allow input of characters, for instance the tilde ~. I needed this in \ar@{~>}[r] in xy-pic to produce a squiggly arrow. I eventually forced it in by pasting into the maths environment. The screen shows LYX thinks there is a space, the code view shows a tilde, but when trying to input tilde from the keyboard LYX converts it to \sim which then throws a compile error. Cheers What happens if you escape the tilde (with a backslash)? I get this "Xy-pic error: illegal : macro:->\T1-cmd \~\T1\~ not valid." Yeah, that one's definitely weird. I had to reverse engineer the wiggly arrow in the LyX xy-pic manual. It turns out that you need to use Insert > Formatting > Protected Space where you want the tilde. In the math inset, you'll see the marker for a space, but if you look at the LyX code in the Code Preview pane, it will be a tilde ... plus, when you compile you'll see that it worked. Paul Yes its annoying. I achieved the right code by cutting ~> from normal text and pasting it into the maths environment. This seems to stop the shortcut mechanism changing the tilde to \sim. -- Steve Hnizdur
Re: Spaces in math formulae
On 01/07/2019 00:58, Paul A. Rubin wrote: On 6/30/19 3:55 AM, Steve Hnizdur wrote: On 29/06/2019 17:24, Paul A. Rubin wrote: On 6/29/19 7:43 AM, Steve Hnizdur wrote: Hi I need to use this code \[\newdir{ >}{{}*!/-10pt/@{>}}\xymatrix{X\ar[r]\ar@{ >->}[d] & Y\ar@{ >->}[d]\\Z \ar[r] & W}\] in order to move the tail of the vertical arrows away from the entries X and Y. This works in an ERT but when inputting in native LYX it strips out the important spaces in \newdir{ >} and @{ >->}. Is there any way to force LYX to accept these spaces. Many thanks I think the problem is that you named your new arrowhead " >" (meaning the name contains a space). Changing that to something else seems to fix the problem. Based on an example in the LyX xy-pic help file, I used a vertical bar (so the first argument to \newdir is "|>"). I've attached a working (for me at least) LyX file. Paul > Hi Thanks for that. I had taken the code directly from the XY-pic User’s Guide. Now, having played with it ANY allowable LYX character seems to work e.g. x. There have been other instances where LYX will not allow input of characters, for instance the tilde ~. I needed this in \ar@{~>}[r] in xy-pic to produce a squiggly arrow. I eventually forced it in by pasting into the maths environment. The screen shows LYX thinks there is a space, the code view shows a tilde, but when trying to input tilde from the keyboard LYX converts it to \sim which then throws a compile error. Cheers What happens if you escape the tilde (with a backslash)? I get this "Xy-pic error: illegal : macro:->\T1-cmd \~\T1\~ not valid." -- Steve Hnizdur
Re: Spaces in math formulae
On 29/06/2019 17:24, Paul A. Rubin wrote: On 6/29/19 7:43 AM, Steve Hnizdur wrote: Hi I need to use this code \[\newdir{ >}{{}*!/-10pt/@{>}}\xymatrix{X\ar[r]\ar@{ >->}[d] & Y\ar@{ >->}[d]\\Z \ar[r] & W}\] in order to move the tail of the vertical arrows away from the entries X and Y. This works in an ERT but when inputting in native LYX it strips out the important spaces in \newdir{ >} and @{ >->}. Is there any way to force LYX to accept these spaces. Many thanks I think the problem is that you named your new arrowhead " >" (meaning the name contains a space). Changing that to something else seems to fix the problem. Based on an example in the LyX xy-pic help file, I used a vertical bar (so the first argument to \newdir is "|>"). I've attached a working (for me at least) LyX file. Paul > Hi Thanks for that. I had taken the code directly from the XY-pic User’s Guide. Now, having played with it ANY allowable LYX character seems to work e.g. x. There have been other instances where LYX will not allow input of characters, for instance the tilde ~. I needed this in \ar@{~>}[r] in xy-pic to produce a squiggly arrow. I eventually forced it in by pasting into the maths environment. The screen shows LYX thinks there is a space, the code view shows a tilde, but when trying to input tilde from the keyboard LYX converts it to \sim which then throws a compile error. Cheers -- Steve Hnizdur
Spaces in math formulae
Hi I need to use this code \[\newdir{ >}{{}*!/-10pt/@{>}}\xymatrix{X\ar[r]\ar@{ >->}[d] & Y\ar@{ >->}[d]\\Z \ar[r] & W}\] in order to move the tail of the vertical arrows away from the entries X and Y. This works in an ERT but when inputting in native LYX it strips out the important spaces in \newdir{ >} and @{ >->}. Is there any way to force LYX to accept these spaces. Many thanks -- Steve Hnizdur
Re: Translation queries
On 06/10/18 06:07, Richard Kimberly Heck wrote: Redirecting to the developers' list On 10/5/18 8:47 AM, Steve Hnizdur wrote: Hi I have two questions which are illustrated by the MWE attached. It is a simple article class lyx file in German which has a local layout of Format 66 Style XX* LatexType Environment LatexName XX* LabelString "Examples." Margin First_Dynamic LabelType Static Preamble \theoremstyle{definition} \newtheorem*{XX*}{\protect\fred} EndPreamble LangPreamble \providecommand{\fred}{_(YY)} EndLangPreamble BabelPreamble \addto\captions$$lang{\renewcommand{\fred}{_(Case)}} EndBabelPreamble End The png file shows how it looks on the screen. The first question I have is how does lyx manage to translate the LabelString "Examples. " in the local layout to "Beispiele" as shown on the screen? The Customisation documentation says it uses the layouttranslations file, but this word does not exist in this file only "Beispiel". If there is some clever pluralisation then why does it not work with Remark and Remarks? Secondly the \addto\caption in BabelPreamble does not get added to the preamble and so in the final pdf attached the word "Case" is not translated and used as the heading (even though "Case" does exist in layouttranslations). The customisation documentation says that such a line should be added. Is this local to me? Or have I just misunderstood something? I use Ubuntu 16:04 and Lyx 2.3.1 As is often the case I should have read the documentation more closely. It says that BabelPremable is used in Multilingual documents, so if I add an English section as well sure enough I get two \addto\caption lines in the preamble and the display shows both translations. The first question still holds though. Cheers -- Steve Hnizdur
Translation queries
Hi I have two questions which are illustrated by the MWE attached. It is a simple article class lyx file in German which has a local layout of Format 66 Style XX* LatexType Environment LatexName XX* LabelString "Examples." MarginFirst_Dynamic LabelType Static Preamble \theoremstyle{definition} \newtheorem*{XX*}{\protect\fred} EndPreamble LangPreamble \providecommand{\fred}{_(YY)} EndLangPreamble BabelPreamble \addto\captions$$lang{\renewcommand{\fred}{_(Case)}} EndBabelPreamble End The png file shows how it looks on the screen. The first question I have is how does lyx manage to translate the LabelString "Examples. " in the local layout to "Beispiele" as shown on the screen? The Customisation documentation says it uses the layouttranslations file, but this word does not exist in this file only "Beispiel". If there is some clever pluralisation then why does it not work with Remark and Remarks? Secondly the \addto\caption in BabelPreamble does not get added to the preamble and so in the final pdf attached the word "Case" is not translated and used as the heading (even though "Case" does exist in layouttranslations). The customisation documentation says that such a line should be added. Is this local to me? Or have I just misunderstood something? I use Ubuntu 16:04 and Lyx 2.3.1 -- Steve Hnizdur rule_test_2.3.1.pdf Description: Adobe PDF document rule_test_2.3.1.lyx Description: application/lyx
Re: Change Algorithm Numbering
Hi If you are using algorithm2e then try \renewcommand{\thealgocf}{A\arabic{algocf}} It worked for me! On 20/09/18 22:12, Paul A. Rubin wrote: On 09/20/2018 10:14 AM, Pascal Francq (Mailing lists) wrote: Hi, I try to change the change the numbering schema of algorithms in the form 'A1', 'A2', etc. So I add the following command in the preamble of the document: \renewcommand{\thealgorithm}{A\arabic{algorithm}} But LyX says it "thealgorithm" is undefined. Any one an idea? Thanks in advance. Can you post a minimal example showing the current version of what you are trying to change, and then indicate in it somewhere "I want to change this piece here to A1" or whatever? Paul -- Steve Hnizdur
Re: Change Algorithm Numbering
On 20/09/18 22:12, Paul A. Rubin wrote: On 09/20/2018 10:14 AM, Pascal Francq (Mailing lists) wrote: Hi, I try to change the change the numbering schema of algorithms in the form 'A1', 'A2', etc. So I add the following command in the preamble of the document: \renewcommand{\thealgorithm}{A\arabic{algorithm}} But LyX says it "thealgorithm" is undefined. Any one an idea? Thanks in advance. Can you post a minimal example showing the current version of what you are trying to change, and then indicate in it somewhere "I want to change this piece here to A1" or whatever? Paul Hi Have a look in the "Code preview Pane" at the Preamble for a command that looks like \newtheorem{thm}{\protect\theoremname} or \newtheorem{lyxalgorithm}{\protect\algorithmname} (the one you have will depend on the modules you have loaded in Document Settings) In the first case you need to do \renewcommand{\thethm}{A\arabic{algorithm}} and the in the second \renewcommand{\thelyxalgorithm}{A\arabic{algorithm}}. Note in the first case many other environments will be affected since they also use the "thm" counter eg Theorem, etc. Hope that helps -- Steve Hnizdur
Re: Standalone Class
That does it. Thanks On 27/08/18 09:14, Jürgen Spitzmüller wrote: Am Montag, den 27.08.2018, 09:01 +0100 schrieb Steve Hnizdur: Hi I'm trying to use the standalone class but it doesn't appear in the dropdown in the documents settings dialogue. When I look at Tools - Tex Information, standalone appears in both the latex classes and latex styles list. Also I can compile a raw *.tex file with pdflatex. So the latex side is available and works and lyx kind of knows about it. Not sure what in lyx determines what's listed in the dropdown though. You need a corresponding LyX *.layout file. As it happens, you can find one for standalone here: https://wiki.lyx.org/uploads/Layouts/standalone/standalone.layout Installation instructions are at https://wiki.lyx.org/Layouts/Layouts HTH Jürgen Any help appreciated Using Ubuntu 16:04 Lyx 2.3.0. Cheers -- Steve Hnizdur
Standalone Class
Hi I'm trying to use the standalone class but it doesn't appear in the dropdown in the documents settings dialogue. When I look at Tools - Tex Information, standalone appears in both the latex classes and latex styles list. Also I can compile a raw *.tex file with pdflatex. So the latex side is available and works and lyx kind of knows about it. Not sure what in lyx determines what's listed in the dropdown though. Any help appreciated Using Ubuntu 16:04 Lyx 2.3.0. Cheers -- Steve Hnizdur
Re: Lyx 2.3 pdflatex config
On 20/03/18 13:14, Paul A. Rubin wrote: On 03/20/2018 04:22 AM, Steve Hnizdur wrote: Hi I upgraded Lyx to the shiny new 2.3 on Ubuntu 16.04 the other day and the first time hit the "eyes" icon to compile a document I got the Lyx Security Warning "The following LaTeX backend has been configured to allow execution of external programs for any document: pdflatex --shell-escape $$i This is a dangerous configuration. Please, consider using the support offered by LyX for allowing this privilege only to documents that actually need it, instead." The configuration has not been changed by me and is therefore the standard delivered out of the box Lyx configuration. OK so what is the support offered by Lyx as mentioned? Also as this is under the control of Lyx why is it there at all? Cheers I got the same message, but not because LyX set the converter that way. I made that change years ago. When you install LyX, it inherits preferences from your existing personal LyX directory (~/.lyx), at least on Linux. (I'm not sure if this applies on Windows.) So you probably added the shell escape at some point in the past, and it just carried over. Paul Thanks. I have used Lyx for so long that it is entirely possible I did this but can't think why!! If it is not a problem with Lyx but with me then an easy fix. Many thanks -- Steve Hnizdur
Lyx 2.3 pdflatex config
Hi I upgraded Lyx to the shiny new 2.3 on Ubuntu 16.04 the other day and the first time hit the "eyes" icon to compile a document I got the Lyx Security Warning "The following LaTeX backend has been configured to allow execution of external programs for any document: pdflatex --shell-escape $$i This is a dangerous configuration. Please, consider using the support offered by LyX for allowing this privilege only to documents that actually need it, instead." The configuration has not been changed by me and is therefore the standard delivered out of the box Lyx configuration. OK so what is the support offered by Lyx as mentioned? Also as this is under the control of Lyx why is it there at all? Cheers -- Steve Hnizdur
Mixing math formula types
Hi I want to enter a series of equations in an align format, with the = sign aligned. However the first line is too long for the page and so needs to be a multiline format. Is there a way to mix multiline and align formats. Cheers -- Steve Hnizdur
Re: Is this crash a bug?
Bug filed On 05/10/17 14:14, Jürgen Spitzmüller wrote: 2017-10-05 15:09 GMT+02:00 Joel Kulesza <jkule...@gmail.com <mailto:jkule...@gmail.com>>: On Thu, Oct 5, 2017 at 6:01 AM, Steve Hnizdur <hound...@gmail.com <mailto:hound...@gmail.com>> wrote: Is this local to me? Any thoughts. I can reproduce on LyX 2.2.3 on OS X 10.11.6. And with both LyX 2.2.4dev and 2.3dev. Please file a bug report. Jürgen -- Steve Hnizdur
Is this crash a bug?
Hi I create a new document (standard article will do) and enter math input mode. I then enter \xx followed by left cursor arrow, I then move the cursor to between the two x's enter \ and then the right cursor. This then gives me (without the asterisks) Assertion false violated in file: ../../src/CoordCache.cpp, line: 31 There has been an error with this document. LyX will attempt to close it safely. LyX: Attempting to save document newfile1.lyx Saved to /home/steve/newfile1.lyx.emergency. Phew. The current document was closed. * Is this local to me? Any thoughts. -- Steve Hnizdur
Re: Strange compile error
On 03/09/17 21:20, Paul A. Rubin wrote: On 09/03/2017 04:10 PM, Steve Hnizdur wrote: Hi Thanks for replying. Ctrl-R does pdflatex. Attached is the tex file produced by exporting from lyx, and I get the same error by running pdflatex directly on it. I'm running Ubuntu 16.04 with everything upto date. By the way the error still happens if the superscripts are removed, it seems to be the \dots that are causing the problem. Cheers To facilitate others following the thread, it's preferred that we bottom-post. I just ran pdflatex against your TeX, and again it compiled for me with no errors. I'm running Linux Mint 18.2 (based on Ubuntu 16.04), with LyX 2.2.3 and TeXLive 2017. I've attached the pdflatex log file; maybe you can look for differences with yours and find out where yours deviates. It seems to be something on your system, not a LyX error. Paul I can confirm there is a problem with amsmath 2.15a. I have now updated to 2.16a and all is fine. Many thanks for comments and help. -- Steve Hnizdur
Re: Strange compile error
Hi Thanks for replying. Ctrl-R does pdflatex. Attached is the tex file produced by exporting from lyx, and I get the same error by running pdflatex directly on it. I'm running Ubuntu 16.04 with everything upto date. By the way the error still happens if the superscripts are removed, it seems to be the \dots that are causing the problem. Cheers On 03/09/17 21:00, Paul A. Rubin wrote: On 09/03/2017 01:06 PM, Steve Hnizdur wrote: Hi Attached is a lyx file which when complied with ctrl-R gives the error below copied from the error log. It also fails if I try to compile it as a native .tex file. The error goes away if the \dots is removed and it also goes away if the "Number Equations by Section" Module is removed. Any thoughts. What format does ctrl-R use in your configuration? In mine, it's pdflatex, and the document compiles just fine. Paul -- Steve Hnizdur %% LyX 2.2.3 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[british]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{amsmath} \makeatletter %% Textclass specific LaTeX commands. \numberwithin{equation}{section} \makeatother \usepackage{babel} \begin{document} aaa \[ \left\Vert P_{1}\right\Vert ^{m_{1}}\dots\left\Vert P_{r}\right\Vert ^{m_{r}} \] xxx \end{document}
Strange compile error
Hi Attached is a lyx file which when complied with ctrl-R gives the error below copied from the error log. It also fails if I try to compile it as a native .tex file. The error goes away if the \dots is removed and it also goes away if the "Number Equations by Section" Module is removed. Any thoughts. Error ** ! Argument of \zap@to@space has an extra }. \par l.20 ...t\Vert P_{1}\right\Vert ^{m_{1}}\dots\left \Vert P_{r}\right\Vert ^{m... I've run across a `}' that doesn't seem to match anything. For example, `\def\a#1{...}' and `\a}' would produce this error. If you simply proceed now, the `\par' that I've just inserted will cause me to report a runaway argument that might be the root of the problem. But if your `}' was spurious, just type `2' and it will go away. Runaway argument? \left.. ! Paragraph ended before \zap@to@space was complete. \par l.20 ...t\Vert P_{1}\right\Vert ^{m_{1}}\dots\left \Vert P_{r}\right\Vert ^{m... I suspect you've forgotten a `}', causing me to apply this control sequence to too much text. How can we recover? My plan is to forget the whole thing and hope for the best. Runaway argument? ! Paragraph ended before \macro@ was complete. \par l.20 ...t\Vert P_{1}\right\Vert ^{m_{1}}\dots\left \Vert P_{r}\right\Vert ^{m... I suspect you've forgotten a `}', causing me to apply this control sequence to too much text. How can we recover? My plan is to forget the whole thing and hope for the best. ! Missing $ inserted. $ l.20 ...t\Vert P_{1}\right\Vert ^{m_{1}}\dots\left \Vert P_{r}\right\Vert ^{m... I've inserted a begin-math/end-math symbol since I think you left one out. Proceed, with fingers crossed. ! Display math should end with $$. \par l.20 ...t\Vert P_{1}\right\Vert ^{m_{1}}\dots\left \Vert P_{r}\right\Vert ^{m... The `$' that I just saw supposedly matches a previous `$$'. So I shall assume that you typed `$$' both times. Runaway argument? \meaning@ \not@ \ifgtest@ \gdef \thedots@ {\dotsb@ }\else \@xp \DOTS@ \ETC. ! Paragraph ended before \macro@ was complete. \par l.22 I suspect you've forgotten a `}', causing me to apply this control sequence to too much text. How can we recover? My plan is to forget the whole thing and hope for the best. ! LaTeX Error: \begin{equation*} on input line 19 ended by \end{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.24 \end{document} Your command was ignored. Type Ito replace it with another command, orto continue without it. [1 {/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./test_error.aux) ) (\end occurred inside a group at level 1) ### semi simple group (level 1) entered at line 19 (\begingroup) ### bottom level (\end occurred when \iffalse on line 20 was incomplete) (\end occurred when \iffalse on line 20 was incomplete) (\end occurred when \iffalse on line 20 was incomplete) (\end occurred when \ifx on line 20 was incomplete) (\end occurred when \ifx on line 20 was incomplete) (\end occurred when \ifx on line 20 was incomplete) Here is how much of TeX's memory you used: **** -- Steve Hnizdur test_error.lyx Description: application/lyx
Bibliography keys
Hi I'm using lyx 2.2.2 under Ubuntu 16.04.02 and have just noticed something which is puzzling. If I open a file and enter a new line into a bibliography environment I get a key value inserted as expected. However the value of the key does not take into account the values already in the document. This means I get duplicate lines of the form "key "key-nnn"" in the document. Lyx seems to keep its own internal counter which it increments by one irrespective of which document is being edited. Hence, for instance, if documents A and B are alternatively edited, if key-10 is inserted into document A key-11 will then be inserted into document B and then key-12 in document A etc. Is this local to me, a feature or what? Cheers -- Steve Hnizdur
Re: the note box over bottom margin
Hi I've not looked at your source (a MWE would be useful) but I think you may be using a minipage to do your boxes. If you are then this problem is a feature of Latex and there is much discussion on the web e.g. http://tex.stackexchange.com/questions/271410/how-to-make-minipage-spanning-multiple-pages Hope that helps. On 18/09/16 08:38, edu Gpl wrote: Dear Uwe there are 3 problem in my book woth note box, after i generated pdf file, i got 3 box in page 14, 44, and 49 over the bottom margin. the book: https://sourceforge.net/projects/ohodquizgame/files/Books/Physics.pdf/download the source code: https://sourceforge.net/projects/ohodquizgame/files/Books/ regards -- Steve Hnizdur
Layout file syntax
Hi The customisation help file shows the "provides" parameter with the syntax Provides [string][0,1] but doesn't say what the 0,1 do. Am I missing something obvious? What do the 0,1 do? Cheers -- Steve Hnizdur
Re: Reference in TOC as upper-case
Hi Try putting the ERT \addcontentsline{toc}{section}{REFERENCES} before the references. Good luck. On 03/01/16 13:11, Rajil Saraswat wrote: On Jan 3, 2016 4:26 AM, "David Rörich" <david.roer...@gmail.com <mailto:david.roer...@gmail.com>> wrote: > > > > 2016-01-02 22:12 GMT+01:00 Rajil Saraswat <raji...@gmail.com <mailto:raji...@gmail.com>>: >> >> Hi, >> >> I am using the article class. I want the 'References' in the table of >> contents to come out as upper case like 'REFERENCES'. How can i do >> that? >> >> Thanks, >> Rajil > > > > Hi, > > what document class do you use? > > David I am using the article class. -- Steve Hnizdur
Compiling Embedded Objects Help File
Hi I'm trying to display the help file Embedded Objects to see what the effects look like. However I get Unknown option 'ngerman' when I press ctrl-R. The premable to this file contains \documentclass[12pt,ngerman,english,fleqn,bibliography=totoc,index=totoc,BCOR7.5mm, titlepage,captions=tableheading,usenames,dvipsnames]{scrbook} I can see where all these options come from by looking at the Document Settings dialogue except for the ngerman. Where is this set? I'm using Lyx 2.1.3 on Ubuntu 14.04. Many thanks. Cheers -- Steve Hnizdur
Re: Compiling Embedded Objects Help File
On 07/07/15 12:55, Scott Kostyshak wrote: Ah, this is probably because German is used in the document, possibly as an example of how to include text as a separate language. LyX knows what needs to be added to the preamble and does it itself. If you wanted to add it yourself (which is not as recommended as letting LyX handle it for you), you could put it in Class options in Document Settings. Scott You are quite right - as soon as text is selected and set to another language Lyx puts the language code as a class option. BTW are you notifying the documentation team about the needed package? Cheers -- Steve Hnizdur
Compiling Embedded Objects Help File
Hi I'm trying to display the help file Embedded Objects to see what the effects look like. However I get Unknown option 'ngerman' when I press ctrl-R. The premable to this file contains \documentclass[12pt,ngerman,english,fleqn,bibliography=totoc,index=totoc,BCOR7.5mm, titlepage,captions=tableheading,usenames,dvipsnames]{scrbook} I can see where all these options come from by looking at the Document Settings dialogue except for the ngerman. Where is this set? I'm using Lyx 2.1.3 on Ubuntu 14.04. Many thanks. Cheers -- Steve Hnizdur
Re: Compiling Embedded Objects Help File
On 07/07/15 11:31, Scott Kostyshak wrote: On Tue, Jul 07, 2015 at 10:01:23AM +0100, Steve Hnizdur wrote: Hi I'm trying to display the help file Embedded Objects to see what the effects look like. However I get Unknown option 'ngerman' when I press ctrl-R. Can you try installing the package texlive-lang-german? Then try again. I found it by running the command apt-file find ngerman And then looking for TeX Live related names. Scott Thanks for the reply. There are two points: 1. The package texlive-lang-german does allow the compilation. Maybe this should be included in the list of required packages in the note at the top of the document. 2. I was more interested in how the ngerman option was being passed as an option. Two languages were being passed to documentclass i.e. ngerman and english. I cannot immediately find any way to do this in Lyx itself without subsequently editing the file outside Lyx. Cheers -- Steve Hnizdur
Re: Compiling Embedded Objects Help File
On 07/07/15 12:55, Scott Kostyshak wrote: Ah, this is probably because German is used in the document, possibly as an example of how to include text as a separate language. LyX knows what needs to be added to the preamble and does it itself. If you wanted to add it yourself (which is not as recommended as letting LyX handle it for you), you could put it in Class options in Document Settings. Scott You are quite right - as soon as text is selected and set to another language Lyx puts the language code as a class option. BTW are you notifying the documentation team about the needed package? Cheers -- Steve Hnizdur
Page margins
Hi I've been noticed some odd behaviour when the page margins are changed from the class defaults. This has caused me some annoyance with marginal notes. Attached is MWE1.lyx which is a simple document using the class default margins and with the showframe package and its output is MWE1.pdf. MWE2.lyx is identical except that the top margin has been changed. Lyx has inserted \usepackage[a4paper]{geometry} \geometry{verbose,tmargin=5cm} in the preamble. The output MWE2,pdf is not what I had expected as the side margins have changed and the marginal note area is now much nearer the edge. Indeed if say the outer margin is changed in Document Settings then the marginal area can almost disappear altogether. I solved this to some extent as in MWE3.lyx where I stopped Lyx inserting the geometry pack by setting local layout, and then put \usepackage[a4paper,includemp]{geometry} \geometry{verbose,tmargin=5cm} in the preamble. I.e. the same as Lyx did but with an extra option. The output MWE3.pdf is better but still not just a change to the header margin. The includemp could have been includeall with a slight difference to the output. So, should Lyx automatically include this option in the usepackage call or is there a much neater way to do what I want, i.e. change the header margin without changing anything else. Sorry for the length. Couldn't think of a shorter way to describe this. Cheers -- Steve Hnizdur MWE1.lyx Description: application/lyx MWE1.pdf Description: Adobe PDF document MWE2.lyx Description: application/lyx MWE2.pdf Description: Adobe PDF document MWE3.lyx Description: application/lyx MWE3.pdf Description: Adobe PDF document
Page margins
Hi I've been noticed some odd behaviour when the page margins are changed from the class defaults. This has caused me some annoyance with marginal notes. Attached is MWE1.lyx which is a simple document using the class default margins and with the showframe package and its output is MWE1.pdf. MWE2.lyx is identical except that the top margin has been changed. Lyx has inserted \usepackage[a4paper]{geometry} \geometry{verbose,tmargin=5cm} in the preamble. The output MWE2,pdf is not what I had expected as the side margins have changed and the marginal note area is now much nearer the edge. Indeed if say the outer margin is changed in Document Settings then the marginal area can almost disappear altogether. I solved this to some extent as in MWE3.lyx where I stopped Lyx inserting the geometry pack by setting local layout, and then put \usepackage[a4paper,includemp]{geometry} \geometry{verbose,tmargin=5cm} in the preamble. I.e. the same as Lyx did but with an extra option. The output MWE3.pdf is better but still not just a change to the header margin. The includemp could have been includeall with a slight difference to the output. So, should Lyx automatically include this option in the usepackage call or is there a much neater way to do what I want, i.e. change the header margin without changing anything else. Sorry for the length. Couldn't think of a shorter way to describe this. Cheers -- Steve Hnizdur MWE1.lyx Description: application/lyx MWE1.pdf Description: Adobe PDF document MWE2.lyx Description: application/lyx MWE2.pdf Description: Adobe PDF document MWE3.lyx Description: application/lyx MWE3.pdf Description: Adobe PDF document
Re: Compiling Embedded Objects Help File
On 07/07/15 11:31, Scott Kostyshak wrote: On Tue, Jul 07, 2015 at 10:01:23AM +0100, Steve Hnizdur wrote: Hi I'm trying to display the help file Embedded Objects to see what the effects look like. However I get Unknown option 'ngerman' when I press ctrl-R. Can you try installing the package texlive-lang-german? Then try again. I found it by running the command apt-file find ngerman And then looking for TeX Live related names. Scott Thanks for the reply. There are two points: 1. The package texlive-lang-german does allow the compilation. Maybe this should be included in the list of required packages in the note at the top of the document. 2. I was more interested in how the ngerman option was being passed as an option. Two languages were being passed to documentclass i.e. ngerman and english. I cannot immediately find any way to do this in Lyx itself without subsequently editing the file outside Lyx. Cheers -- Steve Hnizdur
Compiling Embedded Objects Help File
Hi I'm trying to display the help file Embedded Objects to see what the effects look like. However I get "Unknown option 'ngerman'" when I press ctrl-R. The premable to this file contains \documentclass[12pt,ngerman,english,fleqn,bibliography=totoc,index=totoc,BCOR7.5mm, titlepage,captions=tableheading,usenames,dvipsnames]{scrbook} I can see where all these options come from by looking at the Document Settings dialogue except for the ngerman. Where is this set? I'm using Lyx 2.1.3 on Ubuntu 14.04. Many thanks. Cheers -- Steve Hnizdur
Re: Compiling Embedded Objects Help File
On 07/07/15 11:31, Scott Kostyshak wrote: On Tue, Jul 07, 2015 at 10:01:23AM +0100, Steve Hnizdur wrote: Hi I'm trying to display the help file Embedded Objects to see what the effects look like. However I get "Unknown option 'ngerman'" when I press ctrl-R. Can you try installing the package texlive-lang-german? Then try again. I found it by running the command apt-file find ngerman And then looking for TeX Live related names. Scott Thanks for the reply. There are two points: 1. The package texlive-lang-german does allow the compilation. Maybe this should be included in the list of required packages in the note at the top of the document. 2. I was more interested in how the ngerman option was being passed as an option. Two languages were being passed to documentclass i.e. ngerman and english. I cannot immediately find any way to do this in Lyx itself without subsequently editing the file outside Lyx. Cheers -- Steve Hnizdur
Re: Compiling Embedded Objects Help File
On 07/07/15 12:55, Scott Kostyshak wrote: Ah, this is probably because German is used in the document, possibly as an example of how to include text as a separate language. LyX knows what needs to be added to the preamble and does it itself. If you wanted to add it yourself (which is not as recommended as letting LyX handle it for you), you could put it in "Class options" in Document > Settings. Scott You are quite right - as soon as text is selected and set to another language Lyx puts the language code as a class option. BTW are you notifying the documentation team about the needed package? Cheers -- Steve Hnizdur
Page margins
Hi I've been noticed some odd behaviour when the page margins are changed from the class defaults. This has caused me some annoyance with marginal notes. Attached is MWE1.lyx which is a simple document using the class default margins and with the showframe package and its output is MWE1.pdf. MWE2.lyx is identical except that the top margin has been changed. Lyx has inserted \usepackage[a4paper]{geometry} \geometry{verbose,tmargin=5cm} in the preamble. The output MWE2,pdf is not what I had expected as the side margins have changed and the marginal note area is now much nearer the edge. Indeed if say the outer margin is changed in Document Settings then the marginal area can almost disappear altogether. I solved this to some extent as in MWE3.lyx where I stopped Lyx inserting the geometry pack by setting local layout, and then put \usepackage[a4paper,includemp]{geometry} \geometry{verbose,tmargin=5cm} in the preamble. I.e. the same as Lyx did but with an extra option. The output MWE3.pdf is better but still not just a change to the header margin. The includemp could have been includeall with a slight difference to the output. So, should Lyx automatically include this option in the usepackage call or is there a much neater way to do what I want, i.e. change the header margin without changing anything else. Sorry for the length. Couldn't think of a shorter way to describe this. Cheers -- Steve Hnizdur MWE1.lyx Description: application/lyx MWE1.pdf Description: Adobe PDF document MWE2.lyx Description: application/lyx MWE2.pdf Description: Adobe PDF document MWE3.lyx Description: application/lyx MWE3.pdf Description: Adobe PDF document
Re: Undertilde
On 16/06/15 15:02, Guenter Milde wrote: On 2015-06-16, Steve Hnizdur wrote: Hi I had fun using the frame decoration utilde from the math toolbar and I thought my experience might be of interest. When the decoration is chosen Lyx automatically includes \usepackage{undertilde} in the preamble. Unfortunately I use Ubuntu 14.04.2 LTS and the standard tex live doesn't include this package I don*t know what a standard tex live would be, but under Debian, The texlive packages I have installed are texlive-base texlive-binaries texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-fonts-recommended-doc texlive-generic-extra texlive-generic-recommended texlive-latex-base texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended texlive-latex-recommended-doc texlive-luatex texlive-pictures texlive-pictures-doc texlive-pstricks texlive-pstricks-doc texlive-science and these are what I mean by standard. undertilde.tex is in the texlive-generic-recommended package (found with `apt-file find undertilde`). So, after `apt-get install texlive-generic-reocmmended` it should work. Strange, that the lyx package does not recommend this for automatic installation... The point is that the \usepackage(undertilde} added by Lyx to the preamble doesn't load the undertilde.tex file. The compilation error is that undertilde.sty is not found. Hence \input{undertilde} is needed in the preamble and has to supplied by the user. Günter -- Steve Hnizdur
Undertilde
Hi I had fun using the frame decoration utilde from the math toolbar and I thought my experience might be of interest. When the decoration is chosen Lyx automatically includes \usepackage{undertilde} in the preamble. Unfortunately I use Ubuntu 14.04.2 LTS and the standard tex live doesn't include this package and so I get a compilation error. On searching I found https://www.tug.org/pipermail/texhax/2014-May/021130.html which mentions undertilde.tex and this does exist on my system. Hence to make things work without downloading anything I did - Set provides undertilde in Local Layout (there really ought to be a better way to stop/modify Lyx loading stuff automatically) - Set \input{undertilde} \newcommand{\utilde}{\undertilde} in the preamble and it worked out of the box. Is Ubuntu 14.04 unique in not allowing utilde to work? -- Steve Hnizdur
Undertilde
Hi I had fun using the frame decoration utilde from the math toolbar and I thought my experience might be of interest. When the decoration is chosen Lyx automatically includes \usepackage{undertilde} in the preamble. Unfortunately I use Ubuntu 14.04.2 LTS and the standard tex live doesn't include this package and so I get a compilation error. On searching I found https://www.tug.org/pipermail/texhax/2014-May/021130.html which mentions undertilde.tex and this does exist on my system. Hence to make things work without downloading anything I did - Set provides undertilde in Local Layout (there really ought to be a better way to stop/modify Lyx loading stuff automatically) - Set \input{undertilde} \newcommand{\utilde}{\undertilde} in the preamble and it worked out of the box. Is Ubuntu 14.04 unique in not allowing utilde to work? -- Steve Hnizdur
Re: Undertilde
On 16/06/15 15:02, Guenter Milde wrote: On 2015-06-16, Steve Hnizdur wrote: Hi I had fun using the frame decoration utilde from the math toolbar and I thought my experience might be of interest. When the decoration is chosen Lyx automatically includes \usepackage{undertilde} in the preamble. Unfortunately I use Ubuntu 14.04.2 LTS and the standard tex live doesn't include this package I don*t know what a standard tex live would be, but under Debian, The texlive packages I have installed are texlive-base texlive-binaries texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-fonts-recommended-doc texlive-generic-extra texlive-generic-recommended texlive-latex-base texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended texlive-latex-recommended-doc texlive-luatex texlive-pictures texlive-pictures-doc texlive-pstricks texlive-pstricks-doc texlive-science and these are what I mean by standard. undertilde.tex is in the texlive-generic-recommended package (found with `apt-file find undertilde`). So, after `apt-get install texlive-generic-reocmmended` it should work. Strange, that the lyx package does not recommend this for automatic installation... The point is that the \usepackage(undertilde} added by Lyx to the preamble doesn't load the undertilde.tex file. The compilation error is that undertilde.sty is not found. Hence \input{undertilde} is needed in the preamble and has to supplied by the user. Günter -- Steve Hnizdur
Undertilde
Hi I had fun using the frame decoration "utilde" from the math toolbar and I thought my experience might be of interest. When the decoration is chosen Lyx automatically includes \usepackage{undertilde} in the preamble. Unfortunately I use Ubuntu 14.04.2 LTS and the standard tex live doesn't include this package and so I get a compilation error. On searching I found https://www.tug.org/pipermail/texhax/2014-May/021130.html which mentions undertilde.tex and this does exist on my system. Hence to make things work without downloading anything I did - Set "provides undertilde" in Local Layout (there really ought to be a better way to stop/modify Lyx loading stuff automatically) - Set \input{undertilde} \newcommand{\utilde}{\undertilde} in the preamble and it worked out of the box. Is Ubuntu 14.04 unique in not allowing utilde to work? -- Steve Hnizdur
Re: Undertilde
On 16/06/15 15:02, Guenter Milde wrote: On 2015-06-16, Steve Hnizdur wrote: Hi I had fun using the frame decoration "utilde" from the math toolbar and I thought my experience might be of interest. When the decoration is chosen Lyx automatically includes \usepackage{undertilde} in the preamble. Unfortunately I use Ubuntu 14.04.2 LTS and the standard tex live doesn't include this package I don*t know what a "standard tex live" would be, but under Debian, The texlive packages I have installed are texlive-base texlive-binaries texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-fonts-recommended-doc texlive-generic-extra texlive-generic-recommended texlive-latex-base texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended texlive-latex-recommended-doc texlive-luatex texlive-pictures texlive-pictures-doc texlive-pstricks texlive-pstricks-doc texlive-science and these are what I mean by "standard". "undertilde.tex" is in the "texlive-generic-recommended" package (found with `apt-file find undertilde`). So, after `apt-get install texlive-generic-reocmmended` it should work. Strange, that the lyx package does not recommend this for automatic installation... The point is that the \usepackage(undertilde} added by Lyx to the preamble doesn't load the undertilde.tex file. The compilation error is that undertilde.sty is not found. Hence \input{undertilde} is needed in the preamble and has to supplied by the user. Günter -- Steve Hnizdur
Koma and setbibpreamble
Hi I'm trying to include a long preamble to a bibliography using \setbibpreamble and Koma document class. Attached is a MWE. If the preamble is long and causes a page break then page formatting is corrupt and the first bib entry is lost see attached pdf. Is there a way round this? Many thanks -- Steve Hnizdur test.lyx Description: application/lyx test.pdf Description: Adobe PDF document
Re: Koma and setbibpreamble
Hi Wow that's some redefine, but it works. Many thanks. On 17/12/14 14:53, Jürgen Spitzmüller wrote: \renewenvironment{thebibliography}[1]{% \if@bib@break@ \bib@beginhook \else \bib@heading \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else \noindent\bibpreamble\par%\nobreak \fi\fi \bib@beginhook \bib@before@hook \fi \renewcommand{\BreakBibliography}[1]{% \@bib@break \end{thebibliography}% \begingroup ##1\endgroup \begin{thebibliography}{#1} }% \list{% \@biblabel{\@arabic\c@enumiv}% }{% \settowidth\labelwidth{\@biblabel{#1}}% \leftmargin\labelwidth \advance\leftmargin\labelsep \@openbib@code \if@bib@break@ \edef\@tempa{% \noexpand\usecounter{enumiv}% \noexpand\setcounter{enumiv}{\the\c@enumiv}% }\@tempa \no@bib@break \else \usecounter{enumiv}% \fi \let\p@enumiv\@empty \renewcommand*\theenumiv{\@arabic\c@enumiv}% }% \sloppy\clubpenalty4000 \widowpenalty4000 \sfcode`\.=\@m }{% \if@bib@break@ \def\@noitemerr{% \@latex@warning{% \string\BreakBibliography\space at begin of `thebibliography' environment\MessageBreak or following \string\BreakBibliography}% }% \else \def\@noitemerr{% \@latex@warning{% Empty `thebibliography' environment or \string\BreakBibliography\MessageBreak before end of `thebibliography' environment}% }% \fi \endlist \if@bib@break@ \else \bib@after@hook \let\bib@before@hook\@empty \let\bib@after@hook\@empty \fi \bib@endhook } -- Steve Hnizdur
Re: Koma and setbibpreamble
Hi Should this redefined version be in the package? Cheers On 17/12/14 15:28, Jürgen Spitzmüller wrote: 2014-12-17 16:00 GMT+01:00 Steve Hnizdur: Hi Wow that's some redefine, but it works. Many thanks. Actually, it is really just a simple one-liner, the rest is just the original definition from KOMA article, which is quite complex. Normally, such things can be made much shorter by means of etoolbox's \patchcmd, but for some reason, this does not work in this specific case. Jürgen -- Steve Hnizdur -- Steve Hnizdur
Koma and setbibpreamble
Hi I'm trying to include a long preamble to a bibliography using \setbibpreamble and Koma document class. Attached is a MWE. If the preamble is long and causes a page break then page formatting is corrupt and the first bib entry is lost see attached pdf. Is there a way round this? Many thanks -- Steve Hnizdur test.lyx Description: application/lyx test.pdf Description: Adobe PDF document
Re: Koma and setbibpreamble
Hi Wow that's some redefine, but it works. Many thanks. On 17/12/14 14:53, Jürgen Spitzmüller wrote: \renewenvironment{thebibliography}[1]{% \if@bib@break@ \bib@beginhook \else \bib@heading \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else \noindent\bibpreamble\par%\nobreak \fi\fi \bib@beginhook \bib@before@hook \fi \renewcommand{\BreakBibliography}[1]{% \@bib@break \end{thebibliography}% \begingroup ##1\endgroup \begin{thebibliography}{#1} }% \list{% \@biblabel{\@arabic\c@enumiv}% }{% \settowidth\labelwidth{\@biblabel{#1}}% \leftmargin\labelwidth \advance\leftmargin\labelsep \@openbib@code \if@bib@break@ \edef\@tempa{% \noexpand\usecounter{enumiv}% \noexpand\setcounter{enumiv}{\the\c@enumiv}% }\@tempa \no@bib@break \else \usecounter{enumiv}% \fi \let\p@enumiv\@empty \renewcommand*\theenumiv{\@arabic\c@enumiv}% }% \sloppy\clubpenalty4000 \widowpenalty4000 \sfcode`\.=\@m }{% \if@bib@break@ \def\@noitemerr{% \@latex@warning{% \string\BreakBibliography\space at begin of `thebibliography' environment\MessageBreak or following \string\BreakBibliography}% }% \else \def\@noitemerr{% \@latex@warning{% Empty `thebibliography' environment or \string\BreakBibliography\MessageBreak before end of `thebibliography' environment}% }% \fi \endlist \if@bib@break@ \else \bib@after@hook \let\bib@before@hook\@empty \let\bib@after@hook\@empty \fi \bib@endhook } -- Steve Hnizdur
Re: Koma and setbibpreamble
Hi Should this redefined version be in the package? Cheers On 17/12/14 15:28, Jürgen Spitzmüller wrote: 2014-12-17 16:00 GMT+01:00 Steve Hnizdur: Hi Wow that's some redefine, but it works. Many thanks. Actually, it is really just a simple one-liner, the rest is just the original definition from KOMA article, which is quite complex. Normally, such things can be made much shorter by means of etoolbox's \patchcmd, but for some reason, this does not work in this specific case. Jürgen -- Steve Hnizdur -- Steve Hnizdur
Koma and setbibpreamble
Hi I'm trying to include a long preamble to a bibliography using \setbibpreamble and Koma document class. Attached is a MWE. If the preamble is long and causes a page break then page formatting is corrupt and the first bib entry is lost see attached pdf. Is there a way round this? Many thanks -- Steve Hnizdur test.lyx Description: application/lyx test.pdf Description: Adobe PDF document
Re: Koma and setbibpreamble
Hi Wow that's some redefine, but it works. Many thanks. On 17/12/14 14:53, Jürgen Spitzmüller wrote: \renewenvironment{thebibliography}[1]{% \if@bib@break@ \bib@beginhook \else \bib@heading \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else \noindent\bibpreamble\par%\nobreak \fi\fi \bib@beginhook \bib@before@hook \fi \renewcommand{\BreakBibliography}[1]{% \@bib@break \end{thebibliography}% \begingroup ##1\endgroup \begin{thebibliography}{#1} }% \list{% \@biblabel{\@arabic\c@enumiv}% }{% \settowidth\labelwidth{\@biblabel{#1}}% \leftmargin\labelwidth \advance\leftmargin\labelsep \@openbib@code \if@bib@break@ \edef\@tempa{% \noexpand\usecounter{enumiv}% \noexpand\setcounter{enumiv}{\the\c@enumiv}% }\@tempa \no@bib@break \else \usecounter{enumiv}% \fi \let\p@enumiv\@empty \renewcommand*\theenumiv{\@arabic\c@enumiv}% }% \sloppy\clubpenalty4000 \widowpenalty4000 \sfcode`\.=\@m }{% \if@bib@break@ \def\@noitemerr{% \@latex@warning{% \string\BreakBibliography\space at begin of `thebibliography' environment\MessageBreak or following \string\BreakBibliography}% }% \else \def\@noitemerr{% \@latex@warning{% Empty `thebibliography' environment or \string\BreakBibliography\MessageBreak before end of `thebibliography' environment}% }% \fi \endlist \if@bib@break@ \else \bib@after@hook \let\bib@before@hook\@empty \let\bib@after@hook\@empty \fi \bib@endhook } -- Steve Hnizdur
Re: Koma and setbibpreamble
Hi Should this redefined version be in the package? Cheers On 17/12/14 15:28, Jürgen Spitzmüller wrote: 2014-12-17 16:00 GMT+01:00 Steve Hnizdur: Hi Wow that's some redefine, but it works. Many thanks. Actually, it is really just a simple one-liner, the rest is just the original definition from KOMA article, which is quite complex. Normally, such things can be made much shorter by means of etoolbox's \patchcmd, but for some reason, this does not work in this specific case. Jürgen -- Steve Hnizdur -- Steve Hnizdur
AMS math
Hi I have noticed some curious behaviour recently which hopefully someone can shed light on. In a document with Use AMS math package automatically set in Documents/Settings, when I enter display maths and input x=y followed by cntl-Enter I get a new line with three boxes the middle one centred under the = sign. In a document with Use AMS math package set in Documents/Settings, when I enter display maths and input x=y followed by cntl-Enter I get a new line with only two boxes. The only difference in the preamble is a \usepackage{amssymb} line. Why does this settings difference affect the way array equations work? Cheers Steve
AMS math
Hi I have noticed some curious behaviour recently which hopefully someone can shed light on. In a document with Use AMS math package automatically set in Documents/Settings, when I enter display maths and input x=y followed by cntl-Enter I get a new line with three boxes the middle one centred under the = sign. In a document with Use AMS math package set in Documents/Settings, when I enter display maths and input x=y followed by cntl-Enter I get a new line with only two boxes. The only difference in the preamble is a \usepackage{amssymb} line. Why does this settings difference affect the way array equations work? Cheers Steve
AMS math
Hi I have noticed some curious behaviour recently which hopefully someone can shed light on. In a document with "Use AMS math package automatically" set in Documents/Settings, when I enter display maths and input x=y followed by cntl-Enter I get a new line with three boxes the middle one centred under the = sign. In a document with "Use AMS math package" set in Documents/Settings, when I enter display maths and input x=y followed by cntl-Enter I get a new line with only two boxes. The only difference in the preamble is a \usepackage{amssymb} line. Why does this settings difference affect the way array equations work? Cheers Steve
Re: Default preambles
Hi Sorry not to get back quicker. Yes the problem was a defaults file in templates I had made the mistake of assuming that if I pressed Save as Document Defaults button only the screen I was on would be saved, in my instance, the Language. Interestingly pressing the Use Class defaults button does'nt reset the module list and the preamble for instance. Thanks for the reply On 13/04/13 16:22, Paul A. Rubin wrote: It's not a general feature of LyX, so it's likely specific to your setup. If you create or open any document and click Document Settings ..., you'll see a Save as Document Defaults button. If you click that when you're in a document that is setup to load AMS Theorem, that could become part of the default settings when starting new documents. If you create a new document and go to Document Settings... Modules, is one of the AMS theorem modules in the selected category? If so, try deselecting it and saving as default settings. Paul -- Steve Hnizdur
Re: Default preambles
Hi Sorry not to get back quicker. Yes the problem was a defaults file in templates I had made the mistake of assuming that if I pressed Save as Document Defaults button only the screen I was on would be saved, in my instance, the Language. Interestingly pressing the Use Class defaults button does'nt reset the module list and the preamble for instance. Thanks for the reply On 13/04/13 16:22, Paul A. Rubin wrote: It's not a general feature of LyX, so it's likely specific to your setup. If you create or open any document and click Document Settings ..., you'll see a Save as Document Defaults button. If you click that when you're in a document that is setup to load AMS Theorem, that could become part of the default settings when starting new documents. If you create a new document and go to Document Settings... Modules, is one of the AMS theorem modules in the selected category? If so, try deselecting it and saving as default settings. Paul -- Steve Hnizdur
Re: Default preambles
Hi Sorry not to get back quicker. Yes the problem was a defaults file in templates I had made the mistake of assuming that if I pressed "Save as Document Defaults" button only the screen I was on would be saved, in my instance, the Language. Interestingly pressing the "Use Class defaults" button does'nt reset the module list and the preamble for instance. Thanks for the reply On 13/04/13 16:22, Paul A. Rubin wrote: It's not a general feature of LyX, so it's likely specific to your setup. If you create or open any document and click Document > Settings ..., you'll see a "Save as Document Defaults" button. If you click that when you're in a document that is setup to load AMS Theorem, that could become part of the default settings when starting new documents. If you create a new document and go to Document > Settings... > Modules, is one of the AMS theorem modules in the selected category? If so, try deselecting it and saving as default settings. Paul -- Steve Hnizdur
Default preambles
Hi I've noticed that irrespective of which document class is used (I admit to not trying every single one) the following is put in the preamble automatically by Lyx. \usepackage{amsthm} \makeatletter %% Textclass specific LaTeX commands. \numberwithin{equation}{section} \numberwithin{figure}{section} \makeatother Is this a feature of Lyx or my setup? I can't find where these things might be defined - they are not in the layouts. Apart from being strange in classes like Letter they don't allow compilation unless the package amsmath is loaded as \numberwithin comes from it. -- Steve Hnizdur
Default preambles
Hi I've noticed that irrespective of which document class is used (I admit to not trying every single one) the following is put in the preamble automatically by Lyx. \usepackage{amsthm} \makeatletter %% Textclass specific LaTeX commands. \numberwithin{equation}{section} \numberwithin{figure}{section} \makeatother Is this a feature of Lyx or my setup? I can't find where these things might be defined - they are not in the layouts. Apart from being strange in classes like Letter they don't allow compilation unless the package amsmath is loaded as \numberwithin comes from it. -- Steve Hnizdur
Default preambles
Hi I've noticed that irrespective of which document class is used (I admit to not trying every single one) the following is put in the preamble automatically by Lyx. \usepackage{amsthm} \makeatletter %% Textclass specific LaTeX commands. \numberwithin{equation}{section} \numberwithin{figure}{section} \makeatother Is this a feature of Lyx or my setup? I can't find where these things might be defined - they are not in the layouts. Apart from being strange in classes like Letter they don't allow compilation unless the package amsmath is loaded as \numberwithin comes from it. -- Steve Hnizdur
Re: The documentclass Book (AMS) adds unnumbered sections to ToC
Hi This is a feature of the AMS style. I had the same problem and AMS wrote to me: the ams document classes differ in several significant respects from the basic latex classes, since their purpose is to support ams style. one of these differences is in the handling of chapter and (sub)section titles, which, for ams style, *do* appear in the table of contents; to suppress them, extra measures must be taken. the recommended approach is presented in our author faq: http://www.ams.org/author-faq the exact question is How can I omit or change a heading in the table of contents? the approach consists in defining in the preamble a command \DeclareRobustCommand{\SkipTocEntry}[4]{} and then invoking it immediately before the code that triggers an entry to the toc in this way: \addtocontents{toc}{\SkipTocEntry} Hope that helps On 20/11/12 18:56, Richard Heck wrote: On 11/18/2012 10:27 AM, Enders wrote: The documentclass Book (AMS) adds unnumbered sections to ToC. Is that a feature of Book (AMS) or a bug? So far as I can see, the AMS book class does act this way. We have: \ifnum#2\@m \else \@tocwrite{#1}{#8} and in the starred case #2 just gets set to \@m (which is defined as 1000). Richard -- Steve Hnizdur
Re: The documentclass Book (AMS) adds unnumbered sections to ToC
Hi This is a feature of the AMS style. I had the same problem and AMS wrote to me: the ams document classes differ in several significant respects from the basic latex classes, since their purpose is to support ams style. one of these differences is in the handling of chapter and (sub)section titles, which, for ams style, *do* appear in the table of contents; to suppress them, extra measures must be taken. the recommended approach is presented in our author faq: http://www.ams.org/author-faq the exact question is How can I omit or change a heading in the table of contents? the approach consists in defining in the preamble a command \DeclareRobustCommand{\SkipTocEntry}[4]{} and then invoking it immediately before the code that triggers an entry to the toc in this way: \addtocontents{toc}{\SkipTocEntry} Hope that helps On 20/11/12 18:56, Richard Heck wrote: On 11/18/2012 10:27 AM, Enders wrote: The documentclass Book (AMS) adds unnumbered sections to ToC. Is that a feature of Book (AMS) or a bug? So far as I can see, the AMS book class does act this way. We have: \ifnum#2\@m \else \@tocwrite{#1}{#8} and in the starred case #2 just gets set to \@m (which is defined as 1000). Richard -- Steve Hnizdur
Re: The documentclass "Book (AMS)" adds unnumbered sections to ToC
Hi This is a "feature" of the AMS style. I had the same problem and AMS wrote to me: "the ams document classes differ in several significant respects from the "basic" latex classes, since their purpose is to support ams style. one of these differences is in the handling of chapter and (sub)section titles, which, for ams style, *do* appear in the table of contents; to suppress them, extra measures must be taken. the recommended approach is presented in our author faq: http://www.ams.org/author-faq the exact question is How can I omit or change a heading in the table of contents? the approach consists in defining in the preamble a command \DeclareRobustCommand{\SkipTocEntry}[4]{} and then invoking it immediately before the code that triggers an entry to the toc in this way: \addtocontents{toc}{\SkipTocEntry}" Hope that helps On 20/11/12 18:56, Richard Heck wrote: On 11/18/2012 10:27 AM, Enders wrote: The documentclass "Book (AMS)" adds unnumbered sections to ToC. Is that a feature of "Book (AMS)" or a bug? So far as I can see, the AMS book class does act this way. We have: \ifnum#2>\@m \else \@tocwrite{#1}{#8} and in the starred case #2 just gets set to \@m (which is defined as 1000). Richard -- Steve Hnizdur