# | >>

Paul A. Rubin parubin73 at gmail.com
Mon Nov 9 19:32:17 UTC 2020

On 11/9/20 12:15 PM, Patrick Dupre wrote:
> Hello,
>
> How can I generate the following sequence with lyx?
> $\left|A\right\rangle\rangle$
>
> Thank.
>
> ===========================================================================
>   Patrick DUPRÉ                                 | | email: pdupre at gmx.com
>   Laboratoire interdisciplinaire Carnot de Bourgogne
>   9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
>   Tel: +33 (0)380395988
> ===========================================================================
>
If you plan to use that sequence frequently, you can create a macro for
it. Use Insert > Math > Macro to create the macro, giving it a short but
memorable name. Then, inside any math formula in the document, just type
\ followed by the macro name, and LyX will insert it.

If you will use it in multiple documents, you can create a child
document containing just the macro definition, or you can bind the macro
to a key combination (Tools > Preferences > Editing > Shortcuts), or you
can create a module that defines the macro.

Paul