5
votes
1answer
83 views

Renew command on mbox makes it freeze - Fix subscript size

I'm trying to change the font style of \mbox, but all my tries have failed. All commands I try either have no effect or make pdflatex recursively keep working and never finish and freeze. This makes ...
3
votes
0answers
36 views

Creating a Macro for an n-by-m Matrix in LyX

Specifically, I'd like to create a matrix such as $\left[\begin{array}{cc|c} a_{1} & a_{2} & a_{3}\\ b_{1} & b_{2} & b_{3}\\ c_{1} & c_{2} & c_{3} \end{array}\right]$ But in ...
3
votes
2answers
139 views

defining macros in lyx

I am having a problem defining a script that I got as a macro in LyX (or even making it "work" in LyX). The script I have is the following: ...
3
votes
1answer
65 views

\newcommand for a specific chapter

I write a document with LyX, to which I add PSTricks pictures in ERT sections. I defined a \newcommand in a certain ERT section, and it was available during this ERT section, but not available in the ...
4
votes
0answers
43 views

An external file with macros [duplicate]

I have many common macros in all my documents. how can I move them all to external file, and include it in each document?
3
votes
1answer
1k views

Undefined control sequence on legitimate LyX macro

I'm trying to define a LyX macro, Insert -> Math -> Macro on the menus. It's a very simple macro. Source code under View -> View Source: \global\long\def\Z{\mathbb{Z}} The file compiles nicely if I ...
2
votes
1answer
751 views

How to render \Lyx like \LaTeX [duplicate]

Possible Duplicate: How to write (La)TeX (with braces) [or any other TeX-related logo] Is there a macro defined somewhere that I can use so that \LyX{} renders like \LaTeX in pure LaTeX? ...
1
vote
1answer
214 views

Adding new parameter in lyx

In texmaker, I create document_setting.tex for input some document attribution like the author, publisher, some attribution in acknowledgements. And then input document_setting in master document ...
8
votes
3answers
512 views

Keeping the names of things consistent in LyX.

I'm documenting a software project using LyX and many of the "things" (classes, processes, etc.) that I'm describing don't yet have good names. As my understanding of these things improves, I want to ...
11
votes
1answer
1k views

Alternatives to $\backslash$

Background Instead of marking up the text with bold or emphasis, I read (and agree) that it is better to define a command, or environment, that describes the content. Then apply text formatting ...
6
votes
2answers
649 views

Lyx customized view of command

I have a command definition in my LaTeX preamble: \newcommand*{\code}[1]{\texttt{#1}} But the usage of this command appears as an ERT e.g. \code{select}. I would like this to appear as select that ...
6
votes
2answers
1k views

Automatically define macros in LyX documents

I'm using LyX all the time and over the last 2 years I've accumulated some very handy macros for my lecture notes. As it is today, every time I start a new document, I copy and paste the macros from ...