Tag Info

New answers tagged

1

It is much easier to typeset languages such as Hebrew with one of the newer TeX engines because you have access to fontspec, polyglossia, bidi... and so on. Here's the output I think you want: Here's my code, which has to be compiled with XeLaTeX: \documentclass{article}% egreg's preamble from http://tex.stackexchange.com/a/139006/ \usepackage{fontspec} ...


2

I assume the problem arises because of \usepackage[utf8]{inputenc}. Unicode characters are only supported, when there is a font encoding, which contains the character. Otherwise package inputenc would not know, how to print the character. The encoding TS1 can be used, which is loaded by package textcomp. The next obstacle is that ackage listings does not ...


1

Do you mean ${^\circ}$? This would give you the degree sign, when option mathescape is enabled. And your script would look like this: \documentclass{article} \usepackage{listings} \begin{lstlisting}[mathescape] 10${^\circ}$C \end{lstlisting}


2

The equations you copy from Maxima, e.g. \[\mathrm{fx}\left( x\right) :=\sqrt{\frac{1}{2\cdot \pi \cdot x}}\cdot \mathrm{exp}\left( \frac{-x}{2}\right) \] include opening and closing delimiters for a math environment, in this case \[ and \]. In LaTeX, they denote the start and end of a displayed, unnumbered equation. However, when you make an equation ...


3

The regular expression (found here) works well when used in 'Advanced Find': [[:space:]]([[:alpha:]]+)[[:space:]]\1[[:space:]]


1

The LaTeX code works for me after removing the centering environment that surrounds the caption. LyX adds that because the alignment of the paragraph containing the caption is set to Centered. Set it back to default, and it will probably work fine. That is, right click right outside the caption box, on the same line, choose Paragraph settings, select ...


0

I had a similar hyphenation issue and fixed it by : Turning the option Document / Settings / Language / Language package to None (to avoid the message "option clash for package babel"). Adding \usepackage[french]{babel} in Document / Settings / Latex preamble


2

Without using the LaTeX preamble to insert some packages like threeparttable or ctable and without edit the whole table in an ERT box in order to use alternatives to the standard tabular environment, a simple solution is insert in the table float a minipage as wide as the table must be, then make a normal table with normal footnotes. The problem is that ...


1

Probably 2 solutions: Specify the full (absolute path). Make the current directory the working directory. To do this go to Tools > Preferences > Paths and under temporary directory put .. This works on Ubuntu but I'm not sure about Windows. Explanation: because you are using ERT, LyX does not know to copy the file to the temporary directory that it uses ...


3

It works for me if I Make sure the ERT is on its own line (return before and after). Highlight the ERT and go to Edit > Language > English. I get the following file: #LyX 2.2 created this file. For more info see http://www.lyx.org/ \lyxformat 474 \begin_document \begin_header \textclass heb-article \begin_preamble \usepackage{fullpage} ...


3

I followed Harish Kumar's solution, but I needed to make a fake Aux file. To do this, I used a text editor to insert \citation{ } around each of my bibtex keys, e.g. \citation{johnson1998selective} \citation{peterson1478eulerian} \citation{anderson2014questionable} I pasted all of these into an ".aux" file, and pointed JabRef at that.


1

Yet another way to create a dash is to use a strike-out through a space. It creates a slightly longer one than given in the answer by Sam Buss, which is what I needed. One could define the macro by \usepackage[normalem]{ulem} \newcommand{\mydash}{\hbox{\sout{ }}}


0

Scrolling with arrow ↑↓ maintain always the cursor visible in the window between the first and last line of the screen, so I guess that the major problem is when you use the scrolling bar (or the equivalent scroll wheel of the mouse) and the cursor go away. I think that the closest feature to what you're looking for is the toggle-cursor-follows-scrollbar ...


1

I just solved the case myself. The solution is to change the \pagestyle to {plain} at the section I only want numbers showing. My code which now does this is shown below simplified: \begin{document} \pagenumbering{arabic} \pagestyle{headings} Include Chapter 1 ... Include Chapter 6 \addcontentsline{toc}{chapter}{Bibliography} \pagestyle{plain} ...


2

Thanks to @scottkosty 's answer on how to find the name of a Lyx function, I found the name of the "Insert Hyperlink" function. Under Tools / preferences / Editing / Shortcuts / "Cursor, Mouse and Editing functions", the function is called: href-insert. I then clicked on modify and gave it the shortcut CTRL+K. It replaces another command which I never ...


2

To number an unnumbered equation, you do not have to copy-paste the equation to a new environment. Just right click the equation and select Number whole formula. The keyboard shortcut for this Alt+MN, i.e. hold down Alt and press M, then release both and press N.


0

This is the following bug: https://bugs.launchpad.net/ubuntu/+source/lyx/+bug/1430059 As a workaround, you can run LyX as follows: QT_X11_NO_NATIVE_MENUBAR=1 lyx


3

Three options: A) If the image is inside a float (as show in your picture), or a note, or a a brach, etc., the you can close the box. How to: Just left-click on the box label. Same as above: right-click on the label box and then select Close box (or something like that, sorry, I am translating from the Spanish version). Menu View > Close all boxes ...


3

Select View --> Outline pane, and then select Labels and references from the drop down in that pane. That will give you a list of all labels, and each label can be expanded by clicking the small arrow next to it, to show a list of all references to that label.


5

@Ulrike Fischer points out that amsart is doing some typesetting in the AtBeginDocument-hook when not every babel command has been set up. So it breaks when it encounters the @brackets command in \leftmarginii. Try \makeatletter \def\@rllanguagename{hebrew} \makeatother


0

first of all, thank you for your suggestions. I solved the problem by writing the same script directly into lyx. Is it possible that by copying and pasting the original script from R into lyx, some "invisible rubbish" could have been included and finally caused trouble?



Top 50 recent answers are included