Hot answers tagged

6

I don't know why this was never answered. But for reference, in case anyone else sees this. When you do Insert --> List/ToC --> BibTeX bibliography, you get this window: The \bibliographystyle is chosen by the Style drop-down menu. Choose the one you want from the list. There is no style called alphaabbrv in the list, but alpha does something like what ...


3

Yes. To place an image in the text, same as if you place any letter in the text, just place the cursor where you want the image, and do Insert --> Graphics. Many people seem to think that a floating environment (the figure environment) is required to add images, which is a misunderstanding.


3

LyX does support Mathematica. Make a math box in LyX (Ctrl+M), put in the math box solve(...), then right-click and go to Use Computer Algebra System and then Mathematica.


3

There is a bug request asking for a button to stop the compilation: http://www.lyx.org/trac/ticket/10108. In the meanwhile, you can try to stop the spawned processes (pdflatex, knitr...) and lyx will give up at some point (not ideal).


3

There are four predefined page styles that can be used with KOMA-Script class without loading an additional package for header and footer. You can use \pagestyle{plain} to get the page number in footer but an empty header. empty: header and footer are empty headings: page number in footer, headings will be set by chapters, sections etc. myheadings: page ...


2

I have discovered that in LyX I have to put the minted part of the file into a [ctrl]+[L] box. Only then does it work.


2

Just uninstall the whole MiKTeX package itself (don't touch LyX), download from MiKTeX then do a whole reconfigure from within LyX. It worked. Things are back to normal now.


2

Here is a pure LaTeX solution (sorry). Simply enclose the bibliography statement in a box. In this way all the crucial parts of \bibliography are still executed but typesetting is prevented. This has the advantage, that it does not depend on implementation details of \bibliography. \documentclass{tufte-handout} \begin{document} Lorem ...


1

I don't know this command, but in your source-code, you can load the boldline package, which defines \hlineB{x}, meaning x times default arrayrule width (0.4pt, but it may be changed), \clineB{m-n}{x} and V{x} in the preamble of the tables, in replacement of | for vertical rules. Alternatively, the makecell package, among many other useful things defines ...


1

Make sure that your bibliography and document are using UTF-8 and then declare \usepackage[utf8]{inputenc} rather than [latin9]. For UTF-8 Bibliographies you might need bibtex8 or biblatex/biber depending on exactly how much language support you need. (Non English titles etc are not a problem but classic bibtex will not understand non ascii letters so ...


1

The problem was identified by Joseph Wrigt in a comment: LyX adds \bibliographystyle to the document, but as achemso already does that, you get an error. I think that to make this work you have to do two things: First choose Insert --> Note --> Comment. Inside this comment-inset, add the bibliography the normal way, with Insert --> List/ToC --> BibTeX ...


1

Go to Document --> Settings --> Document class. Select American Chemical Society (ACS) as the class, and add journal=langd5 to the Custom options. For a twocolumn document, add layout=twocolumn as well. journal=langd5,layout=twocolumn Do not select Two column document in the Text layout tab.


1

The command \definecolor{shadecolor}{rgb}{0, 0, 1} issued in a TeX inset (Ctrl+L) before the shaded box will change this color to blue. If the change should be only local for that particular box, do Ctrl+L; {; exit the TeX inset; Ctrl+L again; \definecolor{shadecolor}{rgb}{0, 0, 1}; exit the TeX inset; insert your box; Ctrl+L; } I do not understand why LyX ...


1

Are you looking for something like this? \documentclass{article} \usepackage[T1]{fontenc} \usepackage{titlesec,titletoc,lipsum} \titleformat{\section} {\normalfont\Large\bfseries} {\thesection}{1em}{} [\vspace*{2pc}% \startcontents \printcontents{}{1}{\setcounter{tocdepth}{2}}% ] \newcommand\repeatsection{% \section{This section} ...


1

The Drag-Dropping is not working at least in Lyx OSx with my settings but Lyx > Preferences > Look & Feel > Document Handling and select the option "Open documents in tabs" works, this is suggested by scottkosty where a small difference with "Tools > Preferences > Look & Feel > Document Handling" with Tools instead of Lyx toolbar link. There ...


1

You can use algorithm and algorithmic to generate the protocol. more info here and here. To do the Protocols "preamble" (Party, input and so on) I would use a simple tabular. The final outcome would be something like this: \documentclass[a4paper,11pt]{article} \usepackage{algorithm} \usepackage{algorithmic} %need these for the protocol ...


1

I had similar problems. Large gaps after figure floats. None of the above had any impact. It was the placement option for the figure floats. Right click on the "float: Figure" The issue stems from if you have large figures in close proximity to each other. Lyx tries to do what you've asked it to. If the check box indicates "Here definitely", the software ...


1

If you want a finer control over your layout you can use \vskip. Some text \vskip 0.2in Some text You can change the value and units should you desire. Anothing thing you can do is create a custom command: \newcommand{\newpara} { \vskip 1cm } So now you can just type \newpara in much the same way as \newline: Some text \newpara Some text ...



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