LaTeX forum ⇒ Texmaker and TeXstudioAdding new symbols to texmaker

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
megh500
Posts: 22
Joined: Tue Jan 24, 2017 5:54 am

Adding new symbols to texmaker

Postby megh500 » Mon Nov 26, 2018 1:04 pm

Hi,

There are some default symbols in texmaker. But i want to add these two symbols
\textquotedblleft

\textquotedblright
.
I mean instead of typing these two symbols each time, i only select. How is it possible? I searched much but cannot find

Thanks

User avatar
Stefan Kottwitz
Site Admin
Posts: 9203
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Dec 04, 2018 5:13 pm

You could define your own shortcuts (macros) in the code. That's independent of the editor, and may shorten both writing and reading. And you can redefine such macros any time, for example if you would decide to change the actual quote sign (font) or double to single or straights.

  1. \documentclass{article}
  2. \newcommand*{\tl}{\textquotedblleft}
  3. \newcommand*{\tr}{\textquotedblright}
  4. \begin{document}
  5. \tl text\tr
  6. \end{document}


Stefan
Site admin


Return to “Texmaker and TeXstudio”

Who is online

Users browsing this forum: No registered users and 0 guests