I found a template on writeLaTex.com for optica style articles. I downloaded the optica.cls from the optical website so i could follow that format. Just fooling around to learn more and unfortunately can't get this one at all.         \documentclass[9pt,twocolumn,twoside]{optica}   no matter what the following code is, which should be okay because I'm working with a template that I downloaded with the optica.cls zip folder, the error i receive is "Latex error: file 'optical.cls' not found". but its just sitting in downloads.   You should also know that the file is still in my "downloads folder" and i don't know exactly where to place it  After hours of pain and reading i can't seem to figure this one out on my own.   you might also want to know that i am using RStudio on a Mac OS 10.10 as my PDF compiler if that changes anything.  Thanks in advanced for helping out and taking your time to read.
3074
I know how to define a package or a class, but how do I make it available (to myself) at all times?  Say I have the package file commonstuff.sty (or myprettyclass.cls), that I want to be able to include in any .tex file I create on my computer. Where do I put it? Do I need to run some installer on it, or is it enough to keep it in a certain folder?  Note: I know I can just place it in the same folder as the .tex file, but that's not what I'm after here. I'm looking for a way to "install" the package centrally on my computer.
72094
I guess this question has been asked several times but still I did not find a solution :(  I used the template for physical review A, \bibliographystyle{spphys}, which the reference paper only has author name, journal title, volume, page e.g.     XXX, Phys. Rev. Lett. XX, XX (XXXX)   I need a template that could display the title of the quoted paper.  e.g.     XXX, title, Phys. Rev. Lett. XX, XX (XXXX)   Where can I find such a template? and/or bst file?
25593
I am writing a novel and fairly new to using LaTeX.  Please bare with me if this is a silly question.  I am working off of the novel demo LaTeX file using the TexWorks software.  I have inserted my words into the file.  When I run the LaTeX code, I get the error message saying "! LaTeX Error: File `novel.cls' not found."  Do I need to download this file from somewhere?  If so, where can I get it?
6143
If you were asked to show examples of beautifully typeset documents in TeX &amp; friends, what would you suggest? Preferably documents available online (I'm aware I could go to a bookstore and find many such documents called 'books'). Extra bonus for documents whose LaTeX source is available.  This is not an idle question. Seeing great examples of any craft is both educational and inspiring, let alone explaining why we prefer TeX to Word or other text editors.  For instance, I like how Philipp Lehman's  looks. I don't know enough LaTeX to realize how much customization was done, but the ToC looks polished.  Your nominations, please ...
123732
The latex file has problems installing/using the linguex package in a ucla thesis latex template (uclathes) (downloaded from GitHub). I inserted it in a preamble of the mother tex file, but it keeps sending `undefined sequence' errors every time I use it to gloss linguistic examples in the \exig. environment and I don't know how to fix it so that the error stops occurring. What is confusing is that all the examples in \exig. are perfectly printed out when compiled in the pdf despite the fact that they appear labeled as errors in tex document. Here is the (near minimal) code of the main tex file.   \documentclass [PhD] {uclathes} \usepackage{linguex}   \begin {document}   \chapter{Introduction}  \exig. Vazan je zadatak.\\ important be{\sc.prs.3sg} task\\ `A task is important.'   \end {document}
90520
I am trying to to put an lstlisting environment in the left column, but I'm getting errors. Are lstlisting and the columns environment in beamer incompatible? Or is it something else?  \documentclass{beamer}  \usepackage{remreset} \usepackage{comment} % end and begin comment \usepackage{dtklogos} % for \BibTeX  \usepackage{listings} % display code on slides; don't forget [fragile] option after \begin{frame} \usepackage{bera} % pause in listing \usepackage{color} \definecolor{lightgrey}{rgb}{0.92,0.92,0.92} % defining color for listing \definecolor{darkgreen}{rgb}{0,0.6,0} % defining color for listing  \usepackage{graphicx} % importing figure  \usepackage{verbatim} % writing code   \makeatletter \@removefromreset{subsection}{section} % creates navigation circles for every slide not section \makeatother \setcounter{subsection}{1} % creates navigation circles for every slide not section  \usetheme{Frankfurt}  \lstset{language=[LaTeX]TeX, basicstyle=\small\ttfamily, texcsstyle=*\bf\color{blue}, numbers=left, breaklines=true, keywordstyle=\color{darkgreen}, commentstyle=\color{red}, otherkeywords={$}, frame=leftline, tabsize=2, backgroundcolor=\color{lightgrey}, escapeinside=|| }  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \begin{frame} \begin{columns}  \begin{column}{5cm} \begin{lstlisting}[float=*] \pause \end{lstlisting} \end{column}  \begin{column}{5cm} text \end{column}  \end{columns}  \end{frame}  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
80392
I would like to use a class that belongs not found in my MiKTeX database. I know I might as well pick up this class and put it in some directory inside the base and update MiKTeX, but I do not want to do that. What I want is to organize it into a subdirectory within the same directory as my main tex file. However, when compiling the tex file, the class is not found. Of course, if I put the direct class in the same directory as the main file I will solve the problem, but that's not what I want. So, I ask: Is there any way to tell the compiler, inside the main file body, how to find the class?  Note: I'm using MiKTeX as an example, but I'm really having the problem in overleaf. There was a revtex upgrade from version 4.1 to 4.2. However, overleaf does not find revtex4-2.cls, which is, in fact, the class I'd like to use.  Below, I show an example of how I would like to organize the files. Note that the class is in a subdirectory.
81282
I have a problem with LaTeX packages. My problem seems to be with xcolor, and very close from this , but their solution does not work for me.   Unfortunatly, even if I put \usepackage[table,xcdraw]{xcolor} before \usepackage{xcolor} the problem continues...   Is there a simple/magic solution?  Here is the packages I use:  \documentclass[ 11pt, % The default document font size, options: 10pt, 11pt, 12pt %oneside, % Two side (alternating margins) for binding by default, uncomment to switch to one side french, % ngerman for German singlespacing, % Single line spacing, alternatives: onehalfspacing or doublespacing %draft, % Uncomment to enable draft mode (no pictures, no links, overfull hboxes indicated) %nolistspacing, % If the document is onehalfspacing or doublespacing, uncomment this to set spacing in lists to single %liststotoc, % Uncomment to add the list of figures/tables/etc to the table of contents %toctotoc, % Uncomment to add the main table of contents to the table of contents %parskip, % Uncomment to add space between paragraphs %nohyperref, % Uncomment to not load the hyperref package headsepline, % Uncomment to get a line under the header %chapterinoneline, % Uncomment to place the chapter title next to the number on one line %consistentlayout, % Uncomment to change the layout of the declaration, abstract and acknowledgements pages to match the default layout table, ]{MastersDoctoralThesis} % The class file specifying the document structure  \usepackage[utf8]{inputenc} % Required for inputting international characters \usepackage[T1]{fontenc} % Output font encoding for international characters  \usepackage{amsmath} % Use the Palatino font by default  \usepackage[table,xcdraw]{xcolor} % pas OK  \usepackage{xcolor} %OK  \usepackage{hyperref}  \usepackage[bottom]{footmisc}  \usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex} % Use the bibtex backend with the authoryear citation style (which resembles APA)  \addbibresource{example.bib} % The filename of the bibliography  \usepackage[autostyle=true]{csquotes} % Required to generate language-dependent quotes in the bibliography  \usepackage{capt-of}  \usepackage{subfigure}  \usepackage{caption}  \usepackage{float}  \usepackage{graphicx}  \usepackage{amssymb}  \usepackage{amsfonts}  \usepackage[framemethod=TikZ]{mdframed} \usepackage{lipsum} \mdfdefinestyle{MyFrame}{%     linecolor=black,     outerlinewidth=2pt,     roundcorner=20pt,     innertopmargin=\baselineskip,     innerbottommargin=\baselineskip,     innerrightmargin=20pt,     innerleftmargin=20pt,     backgroundcolor=gray!20!white}   And here is the table I used in one of the chapters ():   % Please add the following required packages to your document preamble: % \usepackage[table,xcdraw]{xcolor} % If you use beamer only pass "xcolor=table" option, i.e. \documentclass[xcolor=table]{beamer} \begin{table}[] \begin{tabular}{|c| &gt;{\columncolor[HTML]{FFFFFF}}c | &gt;{\columncolor[HTML]{EFEFEF}}c | &gt;{\columncolor[HTML]{FFFFFF}}c | &gt;{\columncolor[HTML]{EFEFEF}}c | &gt;{\columncolor[HTML]{FFFFFF}}c | &gt;{\columncolor[HTML]{EFEFEF}}c | &gt;{\columncolor[HTML]{FFFFFF}}c |} \hline Row 1: &amp; \#1   &amp; \#2  &amp; \#3   &amp; \#4   &amp; \#5      &amp; \#6     &amp; \#7     \\ \hline Row 2: &amp; 12 \% &amp; 1 \% &amp; 15 \% &amp; 25 \% &amp; 18.75 \% &amp; 12.5 \% &amp; 6.25 \% \\ \hline \end{tabular} \end{table}
92901
I am new to this community and the LaTeX environment.  I am learning the markup language and the use of the programmes.  In one of my first tests I got a trouble. The pdflatex compiler made not a problem but if I view my .pdf document, I don't have a Table Of Contents.  See below for a piece of my source code.  Does anyone know the solution for this?  Source Code of the beginning of my (Dutch) book:  \documentclass[a4paper,12pt]{book} %Zet documentklasse     %Nu kies ik de te laden pakketten   \usepackage{fancyhdr}  \usepackage[dutch]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} %\usepackage{graphicx} %Hieronder komt de hoofd- &amp; voettekst \pagestyle{fancy}%Selecteer de paginastijl \fancyhf{}%Maak de kop- en voetteksten leeg \fancyhead[RO,LE]{\thepage}%Zet als koptekst de paginanummers  %Hieronder komt de info over het boek  \title{Debian met Orca; alleen als je blind bent} \author{Jordy Deweer} \date{Maart 2016}  \begin{document} \pagenumbering{gobble}  \maketitle Copyright (C)2016 Alle rechten voorbehouden.  \pagenumbering{arabic} \tableofcontents  \section{Inleiding}
77002
How do I install the  on Mac with MacTeX 2013 and Windows with TeX Live 2013? I am using pdflatex so   does not solve my problem.
15517
I'm trying to set the documentclass type of a certain .tex file to be a class that is in the parent folder. However, I'm not sure how to include the path to the .cls file. I can write   \documentclass[letterpaper,12pt]{../foo}   But that complains that the imported class isn't the same as the provided class (in foo.cls I have \ProvidesClass{foo}. I know that this is just a warning and I could ignore it, or I could write \ProvidesClass{../foo}, but was wondering if there was a cleaner way to do the document class declaration.
59050
I have troubles with optexp environment. There is a code  \documentclass[pstricks,margin=12pt]{standalone}  \usepackage{pst-optexp}  \begin{document} \begin{pspicture}(3.2,5) \pnodes(0,3){A}(1,3){BS}(3,3){M1}(1,5){M2}(1,1){PD} \psset{mirrortype=extended, mirrordepth=0.2}  \begin{optexp} \beamsplitter[bsstyle=plate, compname=BS](A)(BS)(PD) \mirror[compname=M1](BS)(M1)(BS) \mirror[compname=M2, variable](BS)(M2)(BS) \lens[compname=L](BS)(PD) \optdetector[compname=Det, dettype=diode](BS)(PD) \addtopsstyle{Beam}{beamwidth=0.2, fillstyle=solid,fillcolor=green!20!white} \drawwidebeam(A){BS}{M1}{BS}{M2}{BS}{L}{Det} \end{optexp} \end{pspicture}  \end{document}   and the result is this    and I get "MiKTeX GPL Ghostscript 9.19: Unrecoverable error, exit code 1" error. When I remove optexp environment, so  \documentclass[pstricks,margin=12pt]{standalone}  \usepackage{pst-optexp}  \begin{document} \begin{pspicture}(3.2,5) \pnodes(0,3){A}(1,3){BS}(3,3){M1}(1,5){M2}(1,1){PD} \psset{mirrortype=extended, mirrordepth=0.2}   \beamsplitter[bsstyle=plate, compname=BS](A)(BS)(PD) \mirror[compname=M1](BS)(M1)(BS) \mirror[compname=M2, variable](BS)(M2)(BS) \lens[compname=L](BS)(PD) \optdetector[compname=Det, dettype=diode](BS)(PD) \addtopsstyle{Beam}{beamwidth=0.2, fillstyle=solid,fillcolor=green!20!white} \drawwidebeam(A){BS}{M1}{BS}{M2}{BS}{L}{Det}  \end{pspicture}  \end{document}   the result is     which is correct but optical components are behind beam. I use XeLatex. What am I doing wrong? Which packages are missing? Thank you (example is from manual "Drawing optical experimental setups" where the code works correctly).
65549
How can I create a template using TeXmaker? I would create a default file and use it every time I need to make a new LaTeX file.  For example using MS Word it's possible save a document as model and use it every time I need it. Is it possible also in TeXmaker?
36861
The following  (links to pdf) in the  has no provided source. The book  by Ash and Gross seems to use a similar style. Where can I find hints for typesetting publication standard articles/books as above in TeX. I looked around a bit but couldnt find much from else from keyword searches.  Particularly, I am looking at the chapter headings, title page design, and the mirror effect. Sorry for the title, as I dont really know what its called.
63255
Followed the Trailhead tutorial and I still get the same error about svg.  The code I am using is taken from the Lightning Design System. I created the supporting files as specified in the tutorial. Here is a snippet of the Component code (just note not all the code is included since it came directly from the LDS. The error is (Failed to save undefined: No COMPONENT named markup://svg found : [markup://michelleemanuel:forecastPlanComponent]: Source). Some of the other responses I saw said to read the tutorial - I have gone down that path and it did not work. I am not invoking this from a Visualforce page but from a Component.            &lt;table class="slds-table slds-table--bordered slds-max-medium-table--stacked-horizontal"&gt;                                                         select all                                Opportunity Name                                                       Sort          ....
33360
OK, I've been staring at this for an hour.  I know there's an error in this frame, as the document compiles fine if I put \end{document} in the frame before this.  But this frame gives an error   File ended while scanning use of \next   Where is it?????  \begin{frame}[fragile] \frametitle{PROC TEMPLATE for a fancy graph (part 1)} \begin{alltt} proc template;  define statgraph scatdens2;  begingraph;   *BEGIN DEFINING THE GRAPH;    entrytitle "Scatter plot with density plots";     *CREATE A TITLE;    layout lattice/columns = 2 rows = 2     columnweights = (.8 .2) rowweights = (.8 .2)       columndatarange = union rowdatarange = union;    *LAYOUT LATTICE...SETS UP A GRID OF GRAPHS;    *COLUMNWEIGHTS AND ROWWEIGHTS SETS     THE RELATIVE SIZE OF THE INDIVIDUAL COLUMNS AND ROWS;  \end{alltt}  \end{frame}
115596
This code:  \documentclass[11pt,openright]{book} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage[british]{babel}  \usepackage{tikz} \usetikzlibrary{external} \tikzexternalize[prefix={"C:/Users/MyName MySurname/Documents/LaTeX/Figures/"}]  %\tikzexternalize[prefix={Figures/}]   \begin{document} \begin{tikzpicture}     \draw (0,0) circle (1cm); \end{tikzpicture} \end{document}   gives me the error:     ! I can't write on file `"C:/Users/MyName   MySurname/Documents/LaTeX/Figures/MyMWE-figure0.md5"'.   I'm working with Windows 10, MiKTeX 2.9 distibution.  Following the advice Tarass gave me on a comment of this question:  and as indicated here:  I've registered a user-managed TEXMF directory but I still get the same error.  With \tikzexternalize[prefix={Figures/}] all works perfectly but, since I'm using LyX, the files are stored in a LyX temp dir, hence I loose them when I close the program (making externalization useless), so I need to use an absolute path.