Hot answers tagged

35

Update (2017-02-14) Thanks to the time spent on the answer below, and to some new features in WinEdt 10.2, now WinEdt 10.2 is really "LaTeX3-sensitive". WinEdt 10.2 incorporates the highlighting scheme in this answer (with many improvements) and features many other functionalities to support LaTeX3 (e.g. command completion for commands and environments ...


27

For the record, here's my font-lock settings for Emacs with LaTeX3. To make use of these, I define a latex3-mode which is derived from the inbuild latex-mode. (Note: I don't use AucTeX, I use the simple TeX modes.) The idea of the font-locking is similar to Joseph's in that it adds more matches for highlighting. I've added a specials for core functions (...


23

TeXworks uses a simple regex-based approach to syntax highlighting, with the information stored in the file syntax-patterns.txt inside the folder TeXworks/configuration, which lives in a system-dependent location. I have a set of patterns for working with .dtx (LaTeX documented source) files, which include highlighting for expl3 code: [LaTeX DTX] # ...


16

I found a version of the style fileMyStyle.ist here: delim_0 "\\dotfill\ " delim_1 "\\dotfill\ " headings_flag 1 heading_prefix "\\vspace*{0.5cm}\\nopagebreak\n\\tikz\\node at (0pt,0pt) [rounded corners=5pt,draw=ocre,fill=ocre!10,line width=1pt,inner sep=5pt]{\\parbox{\\linewidth-2\\fboxsep-2\\fboxrule-2pt}{\\centering\\large\\sffamily\\bfseries\\textcolor{...


14

WinEdt has a very interesting feature for that. Simply select the section you want, and press the button "Compile Selected" in the toolbar or press Shift+F9. WinEdt will use your preamble to determine your settings and create a new hidden document that is compiled, so you can see the output of the selected text, without compiling the whole document.


14

The simple answer to your question is: No, LaTeX can not do that! LaTeX or TeX is desiged to typeset text, it is not designed to make a spelling or grammar correcting. It tooks the text as it comes (considdering it is well spelled and follows the grammar). If you want to have a grammer correction or an spelling correcting, choose an LaTeX Editor which has ...


14

\relax is a tex primitive command that is non expandable but is defined to do nothing at all, it is useful in several contexts as a delimiter of various sorts. LaTeX always writes one to the start of the aux file for reasons that are not well documented (it does nothing useful) but probably because some file systems had problems with empty, zero length ...


11

I don't know WinEdt, but TeXShop has both a LaTeX panel (with many subparts) which gives you access to many commonly used LaTeX elemnts, and a Matrix panel which provides a simple way to enter small tables and matrices. These are both found under the Window menu item. LaTeX Panel Matrix panel


11

The name of the DDE server for version Adobe Reader XI (i.e. version 11) must be AcroViewR11, cf. Big Changes in the DDE Naming Convention for Acrobat X. According to the error message you still use acroview. In the blog entry you can also read, that for Adobe Acrobat XI the DDE server would be AcroViewA11.


11

There's no predefined shortcut for this in WinEdt. Anyway you can add one, for instance Ctrl+J which is not used anywhere else. To do this (assuming you have version 7 or greater), go to "Options" -> "Options Interface" and, in the branch "Menus and Toolbar", double-click on "Main Menu". A local copy of the file MainMenu.ini will be opened. At this point, ...


11

Support for Adobe Acrobat DC 2017 has been added only in WinEdt 10.2 Build 20170413. The name of the DDE service is, in the case of Acrobat DC Pro 2017, AcroviewA17, while in the case of Adobe Reader DC 2017, AcroviewR17. You have to insert this value in the Options menu -> Execution Modes dialog -> PDF Viewer tab -> Adobe DDE Service Blues field and the ...


10

I figured it out! Harish is right, it's the MainMenu.ini file, but you don't need to bother finding it in your filesystem. WinEdt does that for you. And, as far as I understand, you actually have to do the editing in WinEdt itself since WinEdt produces some extra "code" for the shortcut that you create and that code would not be there if you edited manually ...


10

Symbols can be looked up in "The Comprehensive LaTeX Symbol List": UTF-8 as input encoding If UTF-8 is used as input encoding, then the symbols can be defined using packages ascii for the symbols and newunicodechar for an easier interface of \DeclareUnicodeCharacter: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{ascii} \usepackage{...


10

First of all, a clarification. Adding a value in "TeX Local Root" in the Execution Modes interface (TeX Options page) does nothing more than setting a WinEdt internal variable called TeX-Local which is not used in the defaults. You can use its value (when set), for example, for adding the local TEXMF directory to WinEdt's input directives, Tree interface ...


10

This problem has nothing to do with WinEdt 7. WinEdt 7 is able to treat filenames with spaces as WinEdt 8 is. The problem relies in the fact that WinEdt launches compilers with the command line option --synctex=-1. Older version of SincTeX didn't have support for filenames containing spaces. I'm sure that at work you have an older version of MiKTeX or ...


10

This shouldn't happen. ‘teh’ is considered an active string because it often is a mistyping for ‘the’, and a macro defines auto-correction under special conditions. Check in your Options interface, on the right of the editor window, the contents of the file ActiveStrings.ini. It should contain exactly these lines: STRING="teh" START_FILTER="~Alpha" ...


9

There are three different cases for which these errors may occur in WinEdt. 1. No TeX distribution installed WinEdt is merely an editor, if you want to use TeX you have to download a TeX distribution. See here for more details. 2. No info about the TeX distribution in the system PATH WinEdt can automatically detect the executables of a TeX distribution ...


9

The option to keep the WinEdt Console hidden and to show it only during the compilation is "Pause / Do not hide the Window". When it is selected, the Console is always visible. When it is unselected, it does what you want. I think the correct configuration you are looking for is the one in the picture below:


9

Yes, this can be easily done. In (local copy of) Exec\TeX\Compile.edt insert these lines at the beginning: // If the preamble contains a comment like: // % !Compiler:: "foo" // Then WinEdt will execute foo.edt compiler if it exists, eg.: // TeXify,TeX,AMSTeX,LaTeX,PDFTeXify,PDFTeX,PDFLaTeX,XeTeX,XeLaTeX,LuaTeX,LuaLaTeX,... PushTagsandRegisters; ...


9

In your WinEdt you must have customized and enabled translation tables (or else someone else did it in your copy of the program without you knowing it). By default they are not enabled and do not translate any Greek characters like \mu or \chi. You may not be aware of it but some packages on winedt.org introduce translation tables that would result in the ...


9

UPDATE WinEdt 9.1 build 20150713 now supports Adobe DC. ORIGINAL ANSWER Every couple of years the Adobe staff changes the way DDE works and informations written on Windows registry by their products... To let WinEdt work with Acrobat DC (Acrobat or Reader), you have to open the Options Interface, go to "Advanced Configuration" -> "PDF Macros" and double-...


8

Well the answer you linked too already said it: Winedt 6 can handle utf8. But only if you need only chars from one codepage (e.g. if you are only using the chars from ansinew). When opening an utf8-file winedt 6 translates the chars to (e.g.) the ansinew codepage and all chars outside this codepage are shown as ??. It you change such a file and save it with ...


8

If you're not opposed to compiling with lualatex, then you could make use of the luamplib package to bypass the preview step altogether and compile the images in-document: \documentclass{article} \usepackage{luamplib} \begin{document} Your usual document. \begin{mplibcode} %your metapost code here \end{mplibcode} The rest of your document. \end{document}


8

If you have ConTeXt standalone installed, then you can just run: context filename.mp which will generate filename.pdf.


8

Change in WinEdt to your main file and press Ctrl+F5 (menu Project-> Set Main File). The shortcut is available only in WinEdt version 7 and above. Now you can change to other files, work with them. If you click now to compile the main file is compiled ...


8

Adobe regularly changes the names you need to call the DDE service. This name can not be guessed or extracted from the registry, so you need to adapt the configuration in winedt yourself. The newest Winedt version (build April 2017) has an option to add the DDE-name in the Menu Options -> Execution Modes ->PDF-Viewer. Add there either AcroviewR18 (...


7

I wanted a list of all the labels in my project and wasn't entirely satisfied with the answers listed here so I wrote a bit of Python to search through my LaTeX project files, find all the labels, and print them out by category. Here is an iPython notebook that demonstrates the code. This code presumes that all your labels are of the form chp:chapter_name or ...


7

I guess you are using version 7 or 8 of WinEdt. As David Carlisle pointed out, your problem is that, when you create a new document in those versions of WinEdt, they are automatically created in utf-8 encoding. I suggest to use utf-8 encoding for all of your files. First of all, put \usepackage[utf8]{inputenc} in your main file. This is what you can do ...


7

The Problem is, mentioned in the questions comment, that SumatraPDF is linked to the Latex-Compiler through synctex and doesnt know, which created the resulting PDF. You can use the inverse-search command through the a commandlineswitch of SumatraPDF:-inverse-search. The commands are: TeXnicCenter: -inverse-search "\"C:\Program Files\TeXnicCenter\TEXCNTR....


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