# Tag Info

0

I think the easiest way is to use the outlines package. It is easy to switch itemize, enumerate, types of nested lists. I found using outlines and some custom code in the sublime editor allows me to have a very flexible way of working with outlines. I can promote, demote, re-order, and ultimately reformat so that the outlines are indented properly. ...

3

One easy option for simple list is the wiki package \documentclass{article} \usepackage{wiki} \begin{document} \wikiEnvironments # One # Two This a normal paragraph * One * Two * Three Another normal paragraph ;[One description] Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna ...

3

One normal usecase of aligned is to align certain elements, typically the (in)equality signs, of the different lines while having a single equation number for the whole set. (As opposed to numbering each line separately.) aligned is basically a tabular structure where the columns are aligned as rlrlrlrl.... That is, the first, third etc. columns are right ...

1

define shortcuts: \documentclass{article} \let\BI\itemize \let\EI\enditemize \let\IT\item \begin{document} \BI \IT foo \IT[+] bar \IT baz \EI \end{document}

2

You have \newtheorem{afirmacao}[thm]{\protect\afirmacaoname} It means, that it should be numbered with thm. Removing [thm] should solve the problem.

1

On Linux the following will process all .lyx files in the current folder: for i in *.lyx; do lyx -e pdf2 "${i}"; done Or if you want to get fancy, you can process them in parallel with GNU parallel: ls *lyx | parallel --gnu -j3 lyx -e pdf2 {} Note that "pdf2" says to export to PDF with pdflatex 2 Please don't abandon LibreOffice just for this. You can insert LaTeX formulas directly using the TexMaths extension. Installation: Download the extension at http://extensions.libreoffice.org/extension-center/texmaths-1 Open LibreOffice Writer, go to Tools -> Extension Manager, and select the file (*.oxt) just downloaded. Close all instances of ... 4 For windows, (untested, I don't have any lyx files), make a batch file mylyx.bat with following contents: @ECHO ON CD /D %~dp0 SET Program="lyx.exe" for %%A in (*.lyx) do %Program% --export "pdf2" %%A Pause This assumes that lyx.exe is in system path. Put the batch file in the samr folder as your lyx files and double click. 6 You can use the \addtocontents{type}{text} command. "Type" is the name of the contents file generated by latex. For the tableof contents this is toc, for the list of figures lof and the list of tables lot. \addtocontents{toc}{Author 1} \chapter{Blubb} Should add the name of the author before the chapter in the table of contents. You need to compile twice ... 1 A fancy way for avoiding this problem is to add a short title to the figure (without the citation). This is possible in LyX without adding any additional package to the preamble. 5 "Hide" \input from LyX by adding to your preamble (Document > Settings... > LaTeX Preamble) \let\fileinput\input and then use \fileinput{file} in your document. 0 The problem occurred because I did conversion from .tex to .lyx before rendering a PDF file. At this stage, LyX tried to convert longtable (not a part of its native capacities) into a double simple table and added the double header. 3 Please always post complete documents that show the problem. I had to guess to complete your fragment but I only get one heading, so presumably the problem is in the code you didn't show. \documentclass{article} \usepackage{longtable} \begin{document} \setlongtables \begin{longtable}{rr}\caption{Title} \tabularnewline \hline\hline ... 1 I've fixed the problem by adding these lines before the table: \hspace*{-80pt} \resizebox{20cm}{!}{ \footnotesize \begingroup\tabcolsep=0pt\def\arraystretch{1} and this just below the table: \endgroup } Hope this will help :) Simone 2 You can use any font supported by your LaTeX installation but not yet by LyX by just loading it inside the documents preamble. To use urw-garamond, just set the serif font in the document settings to "default" (should be CM) and add the following line to the document's preamble (also accessible from the document settings): ... 4 LyX 2.1 has support for new fonts. Note, in particular, the URW Garamond and Libertine additions. LyX 2.1 is in beta 2 and is stable (we have had no serious reports of new bugs). You can easily install the development version of 2.1 in Ubuntu with the PPA without risk of conflict with your current 2.0.x version. Otherwise, use XeTeX or LuaTeX. Your fears ... 3 You can use the package nicefracto achieve this:$\nicefrac{A}{B}$creates this output: 2 The problem is that texcount writes to STDOUT, where I think you're assuming it's writing to a file somewhere. The following works for me on Ubuntu: Create a file, mytexcount.sh. Make it executable. Put the following as the contents of the file: texcount -sub "$1" > /path/to/output/mycount.txt Change your converter command to /path/to/mytexcount.sh ...

0

Say you want to insert several different definitions in a row without writing any text between them. All you need to do is to write your definitions between \begin{defn} and \end{defn} commands. Then you can insert as many definitions in a row as you want.

3

The error is due to the wrong loading order of packages: hyperref should be loaded last, while mathdesign must be loaded before fontspec. \documentclass{article} \usepackage[urw-garamond]{mathdesign} \usepackage{fontspec} \usepackage{geometry} \geometry{verbose,tmargin=1in,bmargin=1.5in,lmargin=1in,rmargin=1in} \usepackage{float} \usepackage{colortbl} ...

1

Adding this solved the problem: \DeclareTextCommandDefault{\nobreakspace}{\leavevmode\nobreak\ }

0

Using XeTeX allows me to solve the problem \usepackage[urw-garamond]{mathdesign} \usepackage{hyperref} \usepackage{colortbl} \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5} \definecolor{lightgoldenrodyellow}{cmyk}{0,0,0.16,0.02} \usepackage{framed} \setlength\parindent{24pt} \usepackage{indentfirst} \usepackage{lipsum} \usepackage{fancyhdr} ...

2

New shortcuts are added under Tools --> Preferences --> Editing --> Shortcuts, for details see Shortcuts for Lemma, Claim, Theorem etc. The function you need for the blackboard font is math-insert \mathbb The other fonts in the list (under the font button on the math toolbar) has similar functions, just replace \mathbb with the appropriate macro, e.g. ...

0

The following .lyx file works for me. I went to Document > Settings > Fonts and clicked on "use non-TeX fonts", then I set the fonts to the Free{Serif,Sans,Mono} fonts. Then I exported to PDF with XeTeX. #LyX 2.1 created this file. For more info see http://www.lyx.org/ \lyxformat 413 \begin_document \begin_header \textclass article \use_default_options true ...

1

I don't think you can, and I also think that adding that as an option in LyX is a bad idea, as $$..$$ should not be used in LaTeX at all. However, you don't have to edit each instance by hand. Copy the text to your favourite text editor first, then use find and replace to change all $and$ to . If you're using environments such as align and gather ...

6

For adding your name to the header/footer, LyX provides "fancy" heading via the fancyhdr package. First, activate these style headings (Document > Settings... > Page Layout > Heading Style): Now add the following code to your LaTeX Preamble (also under Document > Settings...): \fancyhf{}% Clear fancy header/footer \fancyfoot[L]{My name}% My name in Left ...

5

Here is a solution that doesn't require headers or footers. It exploits the command \AddToShipoutPicture of the eso-pic package. I'm assuming that you want your name in the upper left corner, but it can be adjusted to be everywhere in the page. Code: \documentclass{article} \usepackage{eso-pic} \usepackage{blindtext} % just for the example ...

1

Well my suggestion was a little bit more LaTeX option. Useful in LyX I think, but perhaps not so easy as the solution suggested by @TorbjørnT. Well you can use the environment \titlepage for create your own frontpage. By example: %% LyX 2.0.6 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are ...

1

Go to the layout textbox (the one in the upper left that says "Standard" if you are not in any special layout, use alt+p as a shortcut to open it). Select Columns (top aligned). press return. Go to the layout textbox and select "Column". press tab. Press ctrl + l (or Insert > TeX Code) to put a width (e.g. .4\textwidth). press return. Write some text for ...

3

One could of course create a custom titlepage from scratch, rather than using the Title, Author, etc. layouts from the dropdown menu. A quick alternative workaround/hack is to place the image as part of the title. If you don't need any vertical space between title and image, hit Ctrl + Enter just after the title, and insert the image with Insert --> ...

1

If I understand you correctly, you can do this with biblatex, which is a quite new LaTeX package for dealing with bibliographies. As LyX hasn't built in support for this in the GUI yet, there is some initial setup required. The information in this answer comes from two sources: The LyX wiki: http://wiki.lyx.org/BibTeX/Biblatex Sorting the bibliography by ...

1

I work on Linux so I'm not sure it will work the same way on your system, but try: Search your computer for the file *lyxpipe*. In Lyx under Tools -> Preferences -> Paths paste the full path of the lyxpipe file, together with the name of the file (i.e. lyxpipe or lyxpipe.). In JabRef under Options -> Preferences -> External programs -> Settings for ...

-1

Maybe you should consider another point of view instead of tilting at windmills. JabRef is a rather good software but LyX could be avoided when frequently working with LaTeX. In the past, it generated code which was not usable for MikTeX. My favourite LaTeX editors: primarily --- Apple --- TextEdit Linux/Gnome --- gEdit Windows --- notepad (Padre would be ...

0

I also use LyX and I also prefer using \left and \right parentheses in most cases. There is a shortcut that I use instead of clicking the "Insert delimiters" button: From inside math mode I type Alt-m ( to get a pair of parentheses, Alt-m [ to get a pair of brackets, Alt-m { to get a pair of braces, Alt-m | to get a pair of vertical bars, etc. ...

5

Edit the LyX file directly. It is a text file. Then run lyx -e pdf2 yourfile.lyx to produce a PDF file using pdflatex.

5

Add the following in your Local Layout of LyX (Document > Settings... > Local Layout): #\DeclareLyXModule{Other} #DescriptionBegin #Defines Axiomp (primed axioms) #DescriptionEnd #Requires: theorems-ams-extended #Category: theorems Format 35 Requires amsmath # The environments defined (regular and starred) are : # - Axiomp Style Axiomp CopyStyle ...

1

Here is one very simple idea that is only a slight variation of what you're currently doing. Put the following into the local layout of your LyX file (in document settings): InsetLayout Flex:PHP LyxType Custom Decoration Classic KeepEmpty 1 LabelString PHP LatexType Paragraph PassThru 1 End Now to insert PHP, instead of using a TeX ...

3

I don't understand exactly what you want to achieve, so there are two parts to this answer. pdfpages This technique will let you distribute all the pages of a PDF across as many pages as necessary of a LyX document. I don't know if it's possible to add notes within LyX next to each page/slide, for that purpose the other technique (see below) would be ...

7

This does not solve your current problem (David's answer should work fine in this respect). However, next time you need to highlight changes for your editor, remember that LyX has a pretty good built-in change tracking system: Just do your edits in change-tracking mode and you are done: It's possible to have mark-ups for the changes in the PDF output, ...

13

The option \usepackage[monochrome]{color} was designed for that use.

1

Burst the PDF file into seperate PDFs (one per page) and include them as an image to your document separately. Insert page breaks if needed. For example, if you have pdftk installed, you can run the following command in the terminal: pdftk yourSlides.pdf burst This will create a couple of files "pg_0001.pdf", "pg_0002.pdf", etc., which you can include ...

0

Wow, DG', that was very helpful, thank you so much! I don't know exactly how I did it, but here's what I did: First, I deleted the bibliography as it was and put it back in like DG' suggested. It's exactly the same way as I did it before, but just to be on the safe side I wanted to follow every step. Second, I deleted the respective entry in BibDesk and ...

1

The question mark usually indicates an unresolved reference. I suppose you added the bibtex database to your document like this: Select "Insert" --> "List / TOC" --> "BibTex Bibliography..." from the menu In the dialogue box click on "Add..." Click "Browse..." Select the file you want (in this case: test.bib) Now, don't forget to confirm the ...

Top 50 recent answers are included