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: "lyxminus" appearing in math mode (windows 10)
On 14-Jun-19 4:44 AM, Kyle Stevens wrote: Hello, I tried asking this question on stackexchange and was more or less told to ask lyx support. My issue is that in math mode symbols that used to be “normal” are now appearing weird such as all greek letters are now bold and he “-“ symbol appears as “lyxminus”. I have found that other people have had this problem and fixes have been offered, however these were all for linux or some system called mint, whereas I’m using the most recent version on windows 10. I am of the understanding that this is some kind of font issue, however I’m at a loss at how to address it. I have attached a screenshot and a lyx file as an example of my problem. Any help at all would be greatly appreciated! Cheers, Kyle I have minus as normal on my Windows and LyX 2.3.3 -- ↓↓ Please bottom-post. Start your reply here:
Re: Renumbering a page FUBARs all page numbers [RESOLVED]
On Mon, 1 Jul 2019, Rich Shepard wrote: Still need to figure out where to put the \setcounter{page}{nn} so the ToC is correct. Found the solution. Originally, I put the ERT in front of the chapter title. Putting it on a new line after the chapter title results in correct page numbering in the ToC and on pages. Another valuable lesson learned. Rich
Re: Renumbering a page FUBARs all page numbers
On Mon, 1 Jul 2019, Rich Shepard wrote: After adding \setnumber{page}{nn} in front of two Appendices/Chapters to leave room for added PDF docs the pdflatex ToC pages started with 141 rather than 1. After removing those two ERT commands pagination now begins at 7. Oh, duh! That's because the ToC, LoF, and LoT are on pages 1-6. Mea culpa! Still need to figure out where to put the \setcounter{page}{nn} so the ToC is correct. Rich
Renumbering a page FUBARs all page numbers
After adding \setnumber{page}{nn} in front of two Appendices/Chapters to leave room for added PDF docs the pdflatex ToC pages started with 141 rather than 1. After removing those two ERT commands pagination now begins at 7. Where should I look to figure out why these two unexpected results occurred? Help needed as I need to get this report to a client ASAP. Regards, Rich
Re: Spaces in math formulae
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
Re: Set new page numbers for ToC
On Mon, 1 Jul 2019, Axel Dessecker wrote: You may insert a specific page number on any page by using \setcounter{page} {XXX} as ERT. Axel, Thank you. I was about to respond with this solution myself as I found the answer in The LaTeX Companion. Regards, Rich
Re: Set new page numbers for ToC
Rich, You may insert a specific page number on any page by using \setcounter{page} {XXX} as ERT. Axel Am Montag, 1. Juli 2019, 18:09:28 CEST schrieb Rich Shepard: > The report I'm preparing has several multipage appendices. Rather than > bursting the PDFs into single pages and inserting then sequentially as > graphic inserts I want to insert them as separate documents into the final > document using pdftk. The ToC should have the correct page number for each > appendix (even if the pages within it are unnumbered). > > What is the LaTeX command to insert a specific page number for the > Appendix/Chapter page? > > TIA, > > Rich
Set new page numbers for ToC
The report I'm preparing has several multipage appendices. Rather than bursting the PDFs into single pages and inserting then sequentially as graphic inserts I want to insert them as separate documents into the final document using pdftk. The ToC should have the correct page number for each appendix (even if the pages within it are unnumbered). What is the LaTeX command to insert a specific page number for the Appendix/Chapter page? TIA, Rich
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