Tag Info

Hot answers tagged

5

I’m not familiar with Young tableaux and diagrams, but I think the package ytableau is better and more fully developed than youngtab. In order to use it in LyX you need: Add \usepackage{ytableau} in the preamble (Document → Settings… → LaTeX Preamble (last one)). Wherever you want to add a Young tableau use ERT (LaTeX inside LyX, Ctrl+l shortcut) and add ...


5

Another xy-pic solution with a different approach: \documentclass{article} \usepackage[all]{xy} \begin{document} \[ \xymatrix{ C\ar[r]^{F}\ar[dr]_{1_{C}} & D\ar[d]^{G}\ar@{<=}[dl]+<22pt>^>>>{\eta} & & D\ar[dr]^{1_{D}}\ar[d]_{G} & \\ & C ...


4

I know that you specifically asked for a xy-pic solution, however, here's a possibility using the more modern and powerful tikz-cd package: The code: % Although you specifically asked for a xy solution, here's a possibility using the more modern and powerfult tikz-cd package: \documentclass{article} \usepackage{tikz-cd} \begin{document} ...


4

LaTeX will refuse to break a 'word' if it contains, among a few other characters, a /. This has very solid reasoning that's outside the scope of this answer, but the url LaTeX package will handle these things very cleanly. Instead of typing in the file path directly, use Insert -> URL. This will (presumably) wrap the argument in \url{<my text ...


4

I do not use xy anymore, as it is not that easy and powerful as tikz-cd. I hope, this solution will help you as well: % arara: pdflatex \documentclass{article} \usepackage{tikz-cd} \begin{document} \[\begin{tikzcd}[row sep=3em] C \arrow{r}{F} \arrow[""{name=foo}]{dr}[swap]{1_C} & D \arrow{d}{G} \arrow[Rightarrow, from=foo, swap, near start, ...


3

Here's a starter in Metapost, showing you one way to organize a drawing with related sub-elements. prologues := 3; outputtemplate := "%j%c.eps"; beginfig(1); picture t[], c; z0 = origin; z1 = 55 right rotated -5; z2 = 60 right rotated 60; z3 = 65 right rotated 20; c = image(fill fullcircle scaled 3 withcolor background; draw fullcircle scaled 3;); t1 ...


3

I would recommend tikz-cd, too. But here's a version for Xy-pic. \documentclass{article} \usepackage{amsmath} \usepackage[all,cmtip]{xy} \begin{document} \[ \begin{gathered} \xymatrix@C+3em@R+3em{ V_1 \ar[r]^{\rho_1(g)} \ar[d]_{\phi} & V_1 \ar[r]^{\rho_1(g')} \ar[d]^{\phi} & V_1 \ar[d]^{\phi} \\ V_2 \ar[r]_{\rho_2(g)} ...


3

First way: place the cursor just inside the phantom inset (so as far as possible to the left, but inside the inset) as seen in this screenshot: You can see that the cusor is nested two levels because there are two sets of framing brackets. Then press "backspace". Second way: place the cursor anywhere inside the phantom inset, and then go to Edit > ...


3

You need to add the .cls to some folder that your tex distribution can find, for compiling. You can for example make a folder in your home directory and register it with tex. Then you can easily keep your folder of tex goodies when you wipe your machine. See this Q & A for details. Secondly, you need to make LyX aware of the package you added. See this ...


3

OK. I dug a little more through the Lyx's menus and I found the answer. The solution is to go the menu: Document-> Change Tracking -> Show changes in Output. Also, worth to be mentioned is that it appears that this works for all 3 PDF export methods including pdflatex. I am wondering then if this wiki document is wrong or obsolete?


3

(This builds on Júda's answer, which you should accept, but is a bit too long for a comment.) You can make the diagrams easier to edit in LyX using this dirty hack. After the \usepackage command in the preamble, add this: \renewenvironment{bmatrix}{\begin{ytableau}}{\end{ytableau}} Usually, the bmatrix environment will create a matrix with square ...


2

Yes, this is possible. Mark the character you wish to color, the go to Edit > Text Style > Customized and choose the color you wish your character to have. Repeat for the next character. You can speed this process up by adding a shortcut to the dialog box: Tools > Preferences > Editing > Shortcuts > New, then as function use dialog-show ...


2

\documentclass{article} \usepackage{amsmath} \begin{document} \noindent Something\dots \begin{alignat*}{2} K_{C} &= \sqrt{EG_{c}} &\qquad &\text{(plane stress)}\\ \intertext{further description of the equation} K_{c} &= \sqrt{\frac{EG_{c}}{1-\nu^{2}}} &&\text{(plane strain)} \end{alignat*} Something\dots \end{document}


2

The following does answer the question, but journal-specific alterations should be avoided. To your Document > Settings... > LaTeX Preamble add \usepackage{etoolbox} % \patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>} \patchcmd{\section}{\centering}{}{}{} which removes the \centering definition from the \section ...


2

Try I almost always use Edit → Paste Special → Plain Text (Ctrl+Shift+V). I am using LyX Version 2.1.2 2014-09-23 on Windows.


2

Your output is due to the fact that the list is outside the g-brief environment. If you change the end of your tex code to: \begin{g-brief} Letter first sentence. Letter second sentence, includes an enumeration: \begin{enumerate} \item eerste \item tweede \item derde punt\end{enumerate} \end{g-brief} You will find that it compiles as expected. The ...


2

Make sure that you also remove the use of babel in your preamble. That is, under Document > Settings... > Language, select None in terms of the language package to use: babel adapts caption titles depending on the language, which is something you don't want in this case.


2

Define with \urldef a command for the problematic url: \documentclass{article} \usepackage{hyperref} \begin{document} \urldef\mydangerousurl\url{http://www.livius.org/cg-cm/chronicles/abc1/abc1_col_ii.html#column_ii} abc\footnote{\mydangerousurl} \end{document}


2

Thanks Ulrike for sending me on the right path. I found another article which led me closer to the final solution, but which also did not work, but with a little fiddling I finally got it to work as follows: First I added to my LyX document (Book) preamble, at the end of my earlier existing LyX preamble the following two lines of code: \usepackage{url} ...


2

To make LyX aware of installed packages, run reconfigure (Tools → Reconfigure). If you need another package that is required by LyX and not provided by MacTeX, install it in ~/Library/texmf or /usr/local/texlive/texmf-local. If you choose to install in /usr/local/texlive/texmf-local, you will need to run mktexlsr /usr/local/texlive/texmf-local in order ...


2

The information is in Help > Customization . I guess we would call the language "LyX's layout format language".


1

I solved the problem in the following way: I inserted the following Tex code in Lyx: \stepcounter{chapter} \chaptermark{SHORT TITLE} \addtocounter{chapter}{-1} \chapter{VERY VERY VERY VERY LONG TITLE} \chaptermark{SHORT TITLE}


1

The indentation you're referring to deals with the paragraphs rather than the list items themselves. This is standard for TeX - something MS Word does not do. If you want to remove all of the regular paragraph indentations, then add \setlength{\parindent}{0pt} to you Document > Settings... > LaTeX Preamble. If you want to selectively remove the indentation ...


1

You can add entries to Mendeley manually by File > Add Entry Manually. This opens a pop-up, where you can choose the entry type (e.g. Web Page, Generic, Bill, Journal Article, etc.). Once you have typed in what information you want, click Save. The entry will now figure as any other Mendeley entry, and will also be present in your generated .bib file. ...


1

I think you might have found a bug in LyX, which you could consider reporting. I think it might be a bug as nothing I insert in Evil Red Text in LyX is exported by LyXHTML. But you do not have to type the asterisks every time, for LyX has a very powerful shortcut mode you can use to avoid using ERT. Go to Tools > Preferences > Editing > Shortcuts ...


1

Package jurabib is from 2004, all of its features are supported by the modern package biblatex which can be used with LyX as well. This output can be achieved with the following code: \documentclass{scrbook} \usepackage{blindtext} \usepackage[style=authoryear]{biblatex} \addbibresource{biblatex-examples.bib} \begin{document} ...



Only top voted, non community-wiki answers of a minimum length are eligible