Tag Info

New answers tagged

1

I'm afraid that I cannot remember where exactly I got the original code for this, but it seems that I modified it at some point as I have versioning notes. The Package Specification Anyway, here is the .spec file I used to create an .rpm for a dummy package: Name: texlive2012-dummy-cfr Version: 1.0 Release: 2%{?dist} Summary: This is a fake TeXLive ...


1

The rpm of 2.1.2 version for x64 can be downloaded here. In the same page you can check the dependencies, in case there are some extra packages you may have to install. Once you have the rpm file, follow the instructions provided in the askfedora forum here. In terminal: rpm -Uvh --nodeps lyx-2.1.2-1.fc20.x86_64.rpm


4

You have redefined the the internal command \raise used for moving boxes up and down. Such boxes typically contain characters to typeset. This is used in the optional argument of the \sqrt command to get the symbol at an appropriate height, and in many other places in LaTeX. In fact, I am surprised that nothing else in your document triggered the error. ...


0

Use the default "Numbered list" [^P E], then ctrl+click over a list element. Select "Custom Item". You will see the default symbols but you will get also a "Custom Item" box: 1. Custom Item [A]Fruits: a) Custom Item [A.1] orange b) Custom Item [A.2] apple will produce: A Fruits: A.1 orange A.2 apple


1

I've managed to seemingly fix this myself. I just ran: Tools -> Reconfigure


0

IEEEtran has a conference mode which automatically centers all the captions. Adding following to your LaTeX code would center all the captions. \documentclass[conference]{IEEEtran} Although, I would also agree with @Werner, that it's best to stick to the format specified by the journal you are submitting.


3

\label records the last referencable item, which is the section head in your case. Normally to refer to a formula you would use equation or align but sometimes in tables you can do it "by hand" \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{babel} \usepackage{float} ...


3

You are simply missing a closing brace. \ifthenelse{\equal{#1}{D}}{\item[{Cons}]}{}}} should be \ifthenelse{\equal{#1}{D}}{\item[{Cons}]}{}}}} MWE: \documentclass{article} \usepackage{nomencl} \usepackage{ifthen} \renewcommand{\nomgroup}[1]{% \ifthenelse{\equal{#1}{A}}{\item[{Sets and Indicis:}]}{% \ifthenelse{\equal{#1}{B}}{\item[{Variables:}]}{% ...


0

A simpler solution: Remove both the shortcuts of quote-insert and quote-insert-single in Preferences. And now you can input these two kinds of straight quotes just by key in ' and " directly. Thanks for the hints of @penguinpreferred


3

Without dealing with external programs, LaTeX code or shortcuts of Preferences menu: Method 1: From menu Menu Insert > Special character > Symbol > Category Basic Latin > " > Apply Method 2: Copy from math mode Ctrl+M (math mode) ⇧ Shift+2 (type " in math mode, i.e.: $"$) ⇧ Shift + <- (select ") Ctrl + C (copy ") → → (out of math mode) ...


0

All you have to do is to actually add a PDF title and author. Go to Document -> Settings -> PDF Properties and type a title/author under "Header Information".


2

For single straight quotes, use Ctrl+'; for double straight quotes use Ctrl+".


4

(Copied here from my comments, with some additions.) LyX automatically escapes things before passing them to LaTeX. For example, – is replaced by \textendash, $ is replaced by \$, and indeed " is replaced by \textquotedbl. LyX also takes care of which packages to load and encoding to use (but isn't perfect). So the concern here is not which macro to use ...


3

You could use the macro \textquotedbl, which requires loading the fontenc package with an option such as T1. \documentclass{article} \usepackage[T1]{fontenc} \begin{document} \textquotedbl this\textquotedbl \end{document}


0

Given Macs use unicode by default, your simplest solution is to use XeTeX as the typesetting engine. See my example at Two fonts for two languages using lyx which uses Hebrew.


3

LyX can handle direct copy-paste of ASCII tables into lyx tables. You just have the columns delimited by tabs in the ASCII table. Then copy the ASCII table from your ASCII editor to the clipboard. In LyX, create an empty table with the appropriate number of columns and rows, e.g. by the menu Insert->Table or even quicker with the pulldown menu in the ...


1

I don't know how to input it in LyX, but this LaTeX code should do. \documentclass{article} \begin{document} \begin{tabular}{ *{7}{r} | c@{}l } \multicolumn{1}{c}{a} & \multicolumn{1}{c}{b} & \multicolumn{1}{c}{c} & \multicolumn{1}{c}{d} & \multicolumn{1}{c}{e} & \multicolumn{1}{c}{f} & \multicolumn{1}{c}{g} & ...


4

Within the default Article (Standard Class) (see you Document > Settings... > Document Class tab), the Title (Author and Date) is set using a macro called \@maketitle (inside article.cls. This is what that macro looks like: \def\@maketitle{% \newpage \null \vskip 2em% \begin{center}% \let \footnote \thanks {\LARGE \@title \par}% \vskip ...


2

A dirty trick (I am too lazy to redefine \maketitle): \documentclass[11pt]{article} \usepackage{doc} \title{Title} \author{Author} \date{\today} \begin{document} Some {\em previous} text \begin{minipage}{\textwidth} \maketitle \end{minipage} \section{Introduction} Lore ipsum ... \end{document} In LyX, with the Insertmenu you can make ...


0

I have a partial workaround, by inserting this into Document > Settings > Local Layout Style Scenebreak Font Size Large EndFont Align center LatexType paragraph TopSep 1.5 BottomSep 1.5 NextNoIndent 1 HTMLStyle div.scenebreak { font-size: 150%; text-align: center; } EndHTMLStyle End That gives me a "Scenebreak" ...


0

You can use CTRL + L to insert latex code anywhere. That is especially useful for mathematical equations, where auto-completion works. For example, you don't have to type \alpha, you type \a, and see many suggestions for auto-complete. To delete anything, you can uses Lyx main window. It works neat with math, but it probably does not much sense to use ...


3

This is straight-forward in LaTeX. The idea would be to save the larger image in a box. Once this is done, you can measure it's height and move the smaller image up by some distance relative to the larger one. In terms of LyX you can follow these instructions: Insert the following in your Document > Settings... > LaTeX Preamble: \newsavebox{\savedimage} ...


0

Integrating the glossaries package with LyX Method 1 Simply load the glossaries package with the automake option. Do this by adding the following to the LaTeX preamble in LyX (found in Document > Settings > LaTeX Preamble): % Initialize the glossaries package \usepackage[automake]{glossaries} \makeglossaries % Define all your glossary entries ...


4

Use the Quotation layout for that specific paragraph (from the top-left drop-down menu). This will place the paragraph inside a quotation environment, specifically used to highlight some piece of text:


0

The way to do this is through the csquotes package. Here is a link with detailed instructions and an example: https://www.sharelatex.com/learn/Typesetting_quotations



Top 50 recent answers are included