Tag Info

Hot answers tagged

17

The following macro \midruleV sets a \midrule every five rows. Counter midruleV is used to count the rows inside a block of five rows. Therefore the counter is reset before the table and after the header, because the header does not count. The larger problem is finding a place to put \midruleV. The example puts it after the last cell by escaping the current ...


13

AUCTeX has autocompletion mechanisms different from most of the other LaTeX editors. In Emacs, when TeX-latex-mode is activated, the sequence Ctrl-c Ctrl-e (the - means that the second key has to be pressed while holding the first, while the space implies the release of both keys before the next combination) opens the mini-buffer dialog interface at the ...


7

Here's an option using the pgfplotstable package. The idea is to read the data into a macro (called edytable below) and then typeset it using the command \pgfplotstabletypeset[ columns/Student Id/.style={string type}, columns/Name/.style={string type}, every head row/.style={ before row={% \toprule ...


7

Yes, this is a bug and will be fixed in WinEdt 8.2. In the meantime, you can get things working properly in this way. Open Tree.ini from the "Options Interface". Do the following global replacement with Regular Expressions on: Search for: <\(0@{ }\)MACRO="GlobalReturn;\(1*\)GlobalMark;" Replace with: <\0MACRO="GlobalMark(1);GlobalReturn;\1" ...


6

You can use physics package and exploit its expval (or the short ev) command: \documentclass{article} \usepackage{physics} \begin{document} $\langle x \rangle $ $\langle x^{A} \rangle$ $\expval{x}$ $\ev*{x^{A}}$ $\expval{x^{A}}$ $\ev{x^{A}}$ \end{document} Or use mathtools package and define a macro \DeclarePairedDelimiter\ev{\langle}{\rangle}% ...


4

When you type \begin{itemize} the completion options are shown under the environments completion scheme, not under itemize completion. Hence you will get \begin{itemize} content ... \end{itemize} Here itemize is treated as an environment. If you want itemize completion with \item use the menu \begin{itemize} available under, LaTeX → List Environments. ...


4

Adding (add-hook 'find-file-hook 'predictive-mode) to your .emacs file should be enough to turn it on everywhere (leave a comment if you don't know what this is). If you want it only on latex-mode, do this instead: (add-hook 'LaTeX-mode-hook 'predictive-mode)


4

Make sure that you use TeXStudio in master mode. To cite the manual of TeXStudio section 4.1: TeXstudio allows you to work onto documents separated in several files. To include a TeX file into your document, just use the "\include{file}" command in the "LaTeX" menu. The file will appear in the "Structure View". With a click on his name, TeXstudio will ...


4

In the menu, select User > Customize Completion. Then add \begin{flalign} to the list of commands. You can also specify arguments using @, e.g \foobar{@}.


4

If you are editing a file with .tex extension, then emacs should automatically enter latex-mode (you will see (LaTeX) in the status bar). In this mode, C-c C-o calls latex-insert-block which will prompt for the block name and arguments, with history and automatic name suggestion. This will insert both the beginning and end commands. If you already typed ...


3

I think another solution would consist in using this macro (which I name d-math.edt in the explanations that follow): BeginGroup; InsLine; GoToBeginningOfLine; Indent; Ins("\[ \]%"); PreviousBullet; EndGroup; The macro shortcut is defined through this addition to the Shortcuts menu in `MainMenu.ini: ITEM="\[ \]" ...


3

The behaviour you describe has nothing to with the Python programming language, it is a feature of the editor you use to write the Python code -- Eclipse, as I understand it. If Texmaker doesn't do this, then you can't really do anything other than file a feature request and see if the author adds it, or learn to live without it. The other option is to ...


3

I don't think this is a good idea: the file names should not have a hardwired numbering. I suggest a “labeling system”: \makeatletter \newcommand{\definefile}[2]{% #1 is a label, #2 is the file name \global\@namedef{fn@#1}{#2}% } \newcommand{\loadfile}[1]{% #1 is a label \input{\@nameuse{#1}}% } \makeatother \definefile{01_01}{ch01_01-motivation} ...


2

Made comment into answer which satisfied the OP Options-->Configure Texmaker-->Editor--> Is completion checked on and add .bib extension \addbibresource{biblatex-examples.bib}. Check if you can see .bib file in Structure on left side pane or open the .bib file with Texmaker from File menu.


2

If TeXstudio doesn’t recognize the landscape environment even though you have \usepackage{pdflscape} in your preamble, try activating the pdflscape.cwl file under “Options” → “Configure TeXstudio” → “Completion”. The same applies for \multirow and multirow.cwl.


2

I collocated these in my discussion with Torbjørn T and this answer to find my way: You should open your TeXworks, choose Scripts--> Scripting TeXworks --> Show Scripts Folder. Then you will achieve folder like "C:\Users\user\TeXworks\scripts". You should go to Folder "C:\Users\user\TeXworks\completion" instead. TeXworks stores the completion data in a ...


2

Using CTRL + Right will suffice under TeXstudio 2.6.6 (hg 4105+:b24377c712d7+) using Qt Version 4.8.5, compiled with Qt 4.8.5 R. The manual says under section 1.5 Configuring the autocompletion: Use Placeholders: if the completed commands have options which need to be filled out, "place holder" are put at this positions and they can be jumped to by ...


1

From the Macros menu, go to "Edit Macros...". Add a new entry with the "Add" button then type in the specifics of your Macro. Give it a Name for your own ease of use, write the Trigger command (for eg. phl, short for photolithography), select among Normal/Environment/Script (Normal is ok here), then don't forget the crucial step: LaTeX code. In this case I'd ...


1

FYI...the support team for TeXnic Center recently (9/16/2013) came out with a release (2.02) that fixes this issue among others. Now if they could just get the word completion to work for anything, and not just code, things would be perfect.


1

Completion and syntax check is both based on so called cwl files, which contain the definitions of the commands. TXS ships with cwls for some frequently used packages but by far not for all. If there is no cwl for a package yet, TXS tries to create one by extracting the information from the TeX source of the package. By default these commands are marked as ...


1

yasnippet and auto-complete mode are similar but distinct packages. You can use them simultaneously, and both will complete your input after pressing TAB. What you describe happens when you expand a (ya)snippet that waits for further input. If you change your mind midway, first abort the current action (Ctrl-G), then use undo repeatedly to roll-back the ...


1

Thanks to user cfr for suggesting this work-around (see discussion here)! To solve the double quote effect of ' mark, go to Settings menu > Configure Kile > Editor > Editing > Auto-Brace plugin. Select it and click on its configuration button, on the right. Un-check the option "Automatically add closing quotation marks". A msg box will pop-up telling you ...


1

I assume, the fixme.cwl was autogenerated. It seems that in this case the autogeneration mechanism was not able to extract the information from the fixme package that \fxnote is a valid command. Check if \fxnote is in your fixme.cwl. If not, simply add it (Note: You need to restart TXS afterwards). If this did not help, see the FAQ on unrecognized commands ...


1

TeXstudio only has a command completion (based on the cwl files). There is no word completion (also not for words that already appear in the document). You can however achieve something similar for fixed word lists by scripting.


1

you can create a user.cwl file with the following content \langle%|\rangle %|marks the place of the cursor. Place the file in your settings directory and activate it in Options -> Completion. You can find more information on the cwl format in the manual. For more complex things you can use skripting with triggers.


1

I posted the issue on the website recommended and got a very helpful reply: Updates: Status: Done Comment #1 on issue 1306 by ... : Auto-completion for \citet http://code.google.com/p/texmaker/issues/detail?id=1306 You can add what you want for the auto-completion : "User" menu -> "Customize completion" : \citet{#bib#} I wasn't aware that you could do ...



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