Tag Info

6

Under Document > Settings... > Listings you have to set a value for the basicstyle "listing parameter". Try, for example, to enter basicstyle={\ttfamily\small}: This will set it in TypeWriter font and size \small. You can change \small to whatever you like, taking from (say) What point (pt) font size are \Large etc.? You could also manually adjust the ...

4

Instead of abusing sections to fake chapters it would be better to use a class (book or report, for example) providing proper chapters; the formatting for the chapter headings can then be easily customized (if required) using the titlesec package, for example. A thesis is more likely to need proper chapters, each one with sections (some of them possibly ...

3

Here is a proof-of-concept (click to enlarge): Define a conditional (say) \newif\ifmethodology which can be set to true (\methodologytrue) or false (\methodologyfalse) in the Document > Settings... > LaTeX Preamble. Surround your conditional section (say, Methodology) with ERTs \ifmethodology and \fi. Depending on the set condition, this entire block of ...

3

First Insert->Program listing and then insert your code into the red box and then right mouse click with the mouse cursor inside the listing box. Choose preferences and then Extended. In the right frame you can insert for example "caption={my caption}".

3

If the numbers of all cross-refernces, and not just those to equations, should be encased in round parentheses, you may achieve by inserting the following instructions in your document's preamble. \AtBeginDocument{\let\origref\ref \renewcommand{\ref}[1]{(\origref{#1})}}} Here's a full MWE (but without screenshot); \documentclass{article} ...

3

One other option is to invest some time in mastering any decent text editor or latex-specific editor. Either of two will certainly solve your problem with images. Having math typed in LaTeX is the most portable solution. I find it easier to deal with math when using unicode-math.sty in xelatex. Since you already know beamer I think it is your best bet. ...

3

You can use the chngcntr package: \usepackage{chngcntr} \counterwithin{chapter}{part} both will reset the chapter counter each time a new part begins and will prefix the chapter counter with the part counter.

2

This might answer your question probably only partly: I have a master document with some child documents. All lyx files have the same document type and use the defaults. To include packages or define macros I have an additional tex file (options.tex) which contains everything that needs to be done in the preamble. In the preamble of the lyx documents I add ...

2

You must count not the number of rows, but the number of lines in case of multiline cells, plus an adjustement corresponding to the number of \addlinespace commands and to the thickness of \midrules. However this is only theoretical. For instance, I chose not to put "granulate" in the middle of its multirow cell, but aligned with "Selective laser melting" ...

2

You've "kind of" run into a LyX bug/feature enhancement http://www.lyx.org/trac/ticket/8875 The workaround is simple: add an empty line at the end of your ERT box, after "@". I say "kind of" above because once that ticket is fixed (possibly in 2.2.0 version which won't be out for a while), I'm not sure we will activate that option for ERT. It will be ...

1

My impression is that LyX is overzealous in doing encoding switching. But \begin{CJK}{} \chapter{\end{CJK}\inputencoding{latin9}Something} is simply wrong code that can't work with any trick whatsoever. If you plan to use CJKutf8, the document encoding should be UTF-8, of course, and not Latin-9. How to set this up for LyX is beyond my knowledge. The ...

1

A first approach for an easy to fill LaTeX template (may be even for LyX using ERT boxes). \documentclass[a4paper]{article} \usepackage{tcolorbox} \tcbuselibrary{skins} \title{ \vspace{-3em} \begin{tcolorbox} \Huge\sffamily Cornell Notes on Something \end{tcolorbox} \vspace{-3em} } \date{} \usepackage{background} \SetBgScale{1} \SetBgAngle{0} ...

1

No, I don't think you can configure the export from Lyx this way, because LaTeX usually adds the extensions. But what is the point against using regular expressions and changing "includegraphics{([a-z]...)}" against "includegraphics{\1.jpg}", details depend on the editor? Learning regular expressions at least a bit is always worth the time.

1

For drag and drop, I assume you mean within the application rather than between applications, since drag and drop rarely works between different programs anyway e.g. I can't even drag an image from a webpage in Internet Explorer to a Word document, and both those programs were made by Microsoft. I know that this is not the advice you asked for, but changing ...

1

I just came accross a similar problem but I am using Texmaker. Yet you might find a way to transfer it to another software. After several trials, here is what I came with: Install R In your editor, you should be able to customize the build options. Add this command: "C:/Program Files/R/R-3.1.1/bin/x64/R.exe" CMD Sweave %.Rnw (if you are with a 64x, ...

1

A short answer, but too long for a comment and good highlighting. It is not meant to keep it. For resetting, you have to add it the reset list (;-)) In the preamble, say after the last \usepackage{}, but before \begin{document} \makeatletter \@addtoreset{chapter}{part} \makeatother This will reset the chapter number when a new part starts!

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