Tag Info

New answers tagged

2

You need to add the .cls to some folder that your tex distribution can find, for compiling. You can for example make a folder in your home directory and register it with tex. Then you can easily keep your folder of tex goodies when you wipe your machine. See this Q & A for details. Secondly, you need to make LyX aware of the package you added. See this ...


1

Thanks Ulrike for sending me on the right path. I found another article which led me closer to the final solution, but which also did not work, but with a little fiddling I finally got it to work as follows: First I added to my LyX document (Book) preamble, at the end of my earlier existing LyX preamble the following two lines of code: \usepackage{url} ...


2

Define with \urldef a command for the problematic url: \documentclass{article} \usepackage{hyperref} \begin{document} \urldef\mydangerousurl\url{http://www.livius.org/cg-cm/chronicles/abc1/abc1_col_ii.html#column_ii} abc\footnote{\mydangerousurl} \end{document}


0

Use dot -Tsvg foo.dot > foo.svg to export your graph in vector format, then embed that.


1

You can add entries to Mendeley manually by File > Add Entry Manually. This opens a pop-up, where you can choose the entry type (e.g. Web Page, Generic, Bill, Journal Article, etc.). Once you have typed in what information you want, click Save. The entry will now figure as any other Mendeley entry, and will also be present in your generated .bib file. ...


0

The question seems to have been resolved here: How to avoid overflow using \IEEEpubid on the first column? The trick is to add \IEEEpubidadjcol in sections of text in the Lyx document that form the first column and second column of the papoer.


0

Short answer To get a), add this to the preamble: \renewcommand{\labelenumi}{\alph{enumi})} To get [a], add this to the preamble: \renewcommand{\labelenumi}{[\alph{enumi}]} If you don't want the change to occur globally, then add this code right before the enumeration (and resotre right after, if needed). Long answer In the preamble, use the ...


1

The indentation you're referring to deals with the paragraphs rather than the list items themselves. This is standard for TeX - something MS Word does not do. If you want to remove all of the regular paragraph indentations, then add \setlength{\parindent}{0pt} to you Document > Settings... > LaTeX Preamble. If you want to selectively remove the indentation ...


0

longtable was written in a way to emulate a regular table environment, just without the floating capability, but supplementing that loss with the (great) ability to break across the page. So you don't have to do anything special for a longtable's \caption to end up in the List of Tables (LoT). That leaves only the insertion of Table in front of the LoT ...


0

Both pgfplots and classicthesis load xcolor package, there must be an option clash. Moreover, classicthesis loads it with the dvipsnames option and expects the corresponding set of named colors. You could try either loading pgfplots at the very end of classicthesis-config.tex, or using some other named color for the title (\color{purple} should always ...


0

You can also just make a shortcut that is Shift+(, as you would normally type a parenthesis, but now it will just automatically insert a smart parenthesis.


-1

I'm a bit late to the party, I realize. Similar to the previous answer, I use Inkscape and JessyInk (or sozi) to make presentations which heavily rely on maths and imported graphics. However, (probably unlike the OP) I'm really reluctant to type code to elaborate presentations and I much prefer create them visually WYSIWYG end-to-end. My math too is done ...


0

I am in your predicament also, with no "available citations" being offered in the LyX 2.1.2 (Linux version) citation window. However I did solve part of your problem, which was to make the choice of biber appear in two places in the LyX setup under Document/Settings and Tools/Preferences, where bibier must both be made to appear, and next must be selected. ...


0

I'm not an experienced user of Lyx or bibliographies. But I noticed several things: Lyx tries to run bibtex, not biber. So I added the option backend=biber. But find out how to convince Lyx to use biber. And the option 'natbib=true' makes things more complicated. I'd go this way: \documentclass[british]{article} \usepackage{babel} ...


0

Possibly this?? \documentclass{book} \usepackage{remreset} \renewcommand*\thechapter{\Roman{chapter}} \renewcommand*\thesection{\arabic{section}} \makeatletter \@removefromreset{section}{chapter} \makeatother \begin{document} \chapter{first} \section{alpha} \subsection{one} \subsection{two} \section{beta} \subsection{one} \subsection{two} ...


1

You can save brain_damage.sty and place it where (La)TeX can find it and then include \usepackage{brain_damage} in your Document > Settings... > LaTeX Preamble. Alternatively, copy-and-paste everything between \ProvidesPackage{brain_damage} ... \endinput (that is, the ... above) and place it directly in the Document > Settings... > LaTeX Preamble.


2

You can use tikz for simple drawings such as this: If you are doing these types of figure often, then it makes sense to wrap them in a macro where you can define #1 = the start value, #2 = end value, and the #3 = list of points to mark. Then, \DrawNumberLine{18}{42}{24,32,38} \DrawNumberLine{0}{50}{24,32,38} \DrawNumberLine{0}{25}{2,7,12,20,22} ...


2

I have found the answer: add the \usepackage{algorithm,algpseudocode} into the premble insert a algorithm block insert the tex code add the following latex code \begin{algorithmic}[1] \Require{$\rho \geq 1$} \Ensure{$X_k$} \While{not converged} \State{Solve $X_{k+1}=\min_{X} L(X,Y_k, \mu_k)$} \State{$Y_{k+1}=Y_k+\mu_k h(X_{k+1})$} \State{$\mu_{k+1}=\rho ...


4

There may be a more "native" xypic way but I didn't see anything about fill styles with a quick look at the manual. You can however not draw the frames with xy then draw framed/filled nodes with anything else, pstricks, tikz, or as here, picture mode \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \setlength{\parindent}{0bp} \usepackage[all]{xy} ...


4

I don't know much about ERTs. But in latex, you can add these to your preamble \renewcommand*{\contentsname}{\MakeUppercase{Table of Contents}} \renewcommand*{\listoflotname}{\MakeUppercase{List of Tables}} \renewcommand*{\listoflofname}{\MakeUppercase{List of Figures}} Or do it koma way by adding \setkomafont{chapter}{\MakeUppercase} before the lists and ...


0

There are many explainations for how the author of that document got that effect. Without seeing their LaTeX it's impossible to know which they used. It looks to me like they simply used an article-like document class, which doesn't support chapters, so "Abstract" is simply a section heading. This doesn't start a new page, so the text above it was just ...


3

The simple, factual answer is: you can't do that. There is no hidden option that will make math entry work precisely the same way as LaTeX, even though it works for copy and paste. However, even without changing any options, it does behave almost like LaTeX, but there are some tricks to get used to. I suspect the second point will mostly answer your ...


2

The reason why pasting is different from typing is because when you paste, LyX tries to detect what content you are pasting. It can detect LaTeX, for example, which is what it does in this case and it then runs tex2lyx to import the LaTeX into LyX's format (although for math there is not much conversion that needs to be done I believe). When you type, LyX ...


1

I had to add the following to the preample and it worked correctly: \addto\captionsenglish{\renewcommand{\figurename}{Fig.}} I referenced this answer: Change caption name of figures I tried following David Carlisle's suggestions of adding \renewcommand\figurename{Fig.} but that actually didn't work regardless of where I place it in the preamble. It also ...


2

ieeetran.cls has \def\figurename{Fig.} \def\tablename{TABLE} \@IEEEcompsocconfonly{\def\figurename{Figure}} so should be using Fig. except in the IEEE comp soc conf setting. You can always add \renewcommand\figurename{Fig.} to set it back.


1

Due to the nature of the setup in LyX, you could insert a ERT with \hline in the first cell of the table: Nothing should be placed before it, but you can put content after it. The output is fairly horrible though: It is advisable to use the "Formal" table border setting instead (Edit > Table Settings... > Borders > Style > Formal), since it uses ...


2

To indent the first paragraph after every section unit, follow the instructions in No indent in the first paragraph in a section? That is, load the indentfirst package as part of your preamble. For a specific 5-space indentation, also add \settowidth{\parindent}{~~~~~} to the preamble. This adjust the width of \parindent - the measure by which paragraphs ...


0

With the below code, I managed to get this with plain pdflatex: ... not sure if that's what you wanted. It seems you had to (re-)do \DeclareQuoteAlias[french]{guillemets}{french} for problems 1 and 2; and \MakeAutoQuote{«}{»} specifically in preamble for problem 3. Here is the MWE: \documentclass{article} \usepackage{xcolor} \pagecolor{yellow!10} ...


1

For the solution to your problem: go to Document > Settings and uncheck "Use refstyle (not prettyref) for cross-references. See the screenshot below Now some picky comments (feel free to skip these): In regards to "LyX somehow can't use eqref", I don't agree (see the solution above). Did you mean that as a question? I like to help users ask clearer ...


3

Figured it out myself already: \documentclass[]{article} \begin{document} \let\odef\def \odef\def#1{\odef\dummy{}{\let\def\odef\newcommand{#1}{}}\odef#1} % <LYXDEFINITIONS> \global\long\def\xx{{\bf x hello}} \xx \global\long\def\yy{{\bf y world}} \yy % </LYXDEFINITIONS> \let\def\odef \end{document} The trick was to return the original ...


1

This is a bug in LyX on Windows.


1

Problem solved! Thanks to all those who had a look at my question, especially scottkosty who suggested a solution. I solved the problem by including the chapter files directly in the LyX master document using the LyX Insert->File->Child Document menu facilty. I can now select the chapter file(s) to be compiled using the LyX Master Document Output window. ...


1

A relatively simple solution is to use XeLaTeX to typeset unicode characters directly. That way you will have your foreign language characters in their native script in LyX. The key is to turn on "Use non-TeX fonts (via XeTeX/LuaTeX) in the "Fonts" tab of your document's settings. See my answer to Two fonts for two languages using lyx where I provide a ...


1

There is a module for logical markup in LyX v. 2.0.7 Enable it: Document > Settings > Modules and add the logical markup module. Use it: Highlight the text you want marked up, go to Edit > Text style > Code.


2

It is a guess, but I think he did only a basic installation of KOMA-Script on Windows. The standard methode of MiKTeX is to download only the basic version and to install on the fly missing packages (runs only if you have a permanent internet conection). You can use the package manager of MiKTeX (click start -- all programs -- MiKTeX 2.9 -- Maintanance -- ...


-1

If you go Ctrl+L (or ⌘+L on a Mac) and then \newpage that should work. It does for me.


1

In the Document > Settings... > LaTeX Preamble, re-enter the Algorithm float as a Local Layout: Format 49 Float Type algorithm GuiName Algorithm Placement tbp Extension loa NumberWithin none Style ruled ListName "List of Algorithms" ...


0

As others have said, questions which just ask people to do the work for you by posting an image (or images, in this case) are not reasonable. (Hire one of us if you want somebody else to do all the work!) However, here is a sSchematic for forest which you can adapt to draw the tree: \documentclass[tikz,border=5pt]{standalone} \usepackage{forest} ...



Top 50 recent answers are included