New answers tagged

2

You could enclose each text segment in a \pbox. Note, this requires the pbox package. This way you can treat each block of text as a math object. \documentclass{article} \usepackage{pbox} \begin{document} $\pbox{3cm}{Variation of\\ neutron number\\ in time} = \pbox{3cm}{Rate of\\ production\\ of neutrons} - \pbox{3cm}{Rate of\\ absorption\\ of neutrons}-\...


2

You can do that very simply with stackengine: its \Centerstack command is in text mode. \documentclass{article} \usepackage[usestackEOL]{stackengine} \begin{document} {\sffamily\[ \Centerstack[l]{ Variation of \\neutron number\\ in time}{}={}\Centerstack[l]{Rate of \\production\\ of neutrons}{}-{}\Centerstack[l]{Rate of\\ absorption \\ of neutrons} {}-{}\...


2

I think that this question is a duplicate of this: How do I typeset vertical and horizontal lines inside a matrix? Here I put a small code where I have changed the parameters of vertical rules. \documentclass[a4paper,12pt]{article} \usepackage{mathtools} \usepackage{amssymb} \newcommand*{\vertbar}{\rule[-1.5ex]{1.1pt}{3ex}} \begin{document} \[\begin{...


1

I found that after installing those packages I had to got Lyx → Tools → Reconfigure. Now the Elsevier article class is available.


0

I now guess it is a problem caused by the 4k monitor. I right-click lyx.exe and select Properties-Compatibility-Modify high DPI setting-High DPI Scaling Override, Check Override high DPI scalling behavior, Scaling performed by System. Then the tilde and hat behave as expected, but the text becomes blurry. So it is best the problem can be solved by Lyx ...


0

Using LyX 2.3.3 with Linux with UTF-8 system locales and typing the UTF-8 character U+200B will produce this in the hidden LaTeX preamble (visible only in the Code Preview Pane): %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands. \newcommand*\LyXZeroWidthSpace{\hspace{0pt}} And the character is changed by the \LyXZeroWidthSpace macro in the body ...


1

@scottkosty mentions 2 relevant bug reports 1 and 2, and the latter suggested passing in "reqno" as a document class option. This changes the equation labeling to the right side (instead of the left as shown) and avoids overlapping the equation label with the equation. Since I'm OK with right side equation label, this solves the issue for me.


1

I just looked at the same thing and tried to use the 2cell feature in xy-pic. After reading the reference manual, I think the "right" solution is the following \documentclass[border=10pt]{standalone} \usepackage[all,2cell]{xy} \UseAllTwocells \begin{document} \[ \xymatrix{C\drtwocell\omit{^<-2>\eta}\ar_{1_C}[dr]\ar^F[r]&D\ar^G[d]& D\drtwocell\...


0

You can add the package hhline in the document preamble with \usepackage{hhline}, remove the bottom border in the first row and insert an ERT with \hhline{|=|=|=|=|=|} in the first cell of the second row (where the vertical bars |=|...| reflect your table structure). The result looks correct:


0

As Fran commented in my question, I only had to install enchant. The solution was: sudo apt install enchant and now it is working.


1

Here's one answer, but it's a hack, and doesn't display fully right. You can break your table up into two tables, and make them exactly abut. Sometimes when I've tried to do this, I wound up with a weird indentation of one of the tables I couldn't clear, but undoing and redoing it again, carefully checking that the paragraph indentation was cleared at each ...


1

This may have been caused by the settings in File Handling. Check Preferences\File Handling\File Formats and then change the viewer to your preferred PDF viewer or set it to custom and put auto in the right box, as shown below.


6

If you want the environment pmatrix of amsmath behave as the environment pNiceMatrix of nicematrix, you should load the package nicematrix with the option transparent: \documentclass{article} \usepackage[transparent]{nicematrix} \begin{document} $\begin{pmatrix}[first-row,first-col] & a & b \\ x & 1 & 2 \\ y & 3 & 4 \end{pmatrix}$ \...


0

Go to Edit > Paste Special > Plain Text, or use the shortcut (on Linux it is Ctrl + Shift + V).


Top 50 recent answers are included