Annotation of loncom/html/adm/help/tex/Authoring_Daxe_Toolbar.tex, revision 1.2

1.1       raeburn     1: \label{Authoring_Daxe_Toolbar}
                      2: 
                      3: \textbf{Daxe Toolbar}
                      4: 
                      5: \includegraphics[width=0.03\paperwidth]{daxetoolbar}
                      6: 
                      7: The toolbar provides the following buttons:
                      8: \begin{itemize}
1.2     ! raeburn     9:   \item \textit{Save}: saves the document and updates the preview. A shortcut for this action is 
1.1       raeburn    10:         \texttt{ctrl-S}. The ``Save and Edit'' button in the last LON-CAPA menu row above the Daxe menus performs the same action.
1.2     ! raeburn    11:   \item \textit{Undo/Redo}: Daxe supports multiple undo/redo, which can also be called with 
1.1       raeburn    12:        \texttt{ctrl-Z} and \texttt{ctrl-Y} or \texttt{ctrl-shift-Z}.
1.2     ! raeburn    13:   \item \textit{Cut/Copy}: These buttons can be used to copy text, elements, or even the 
1.1       raeburn    14:         whole document into the clipboard. The paste button is not available because of 
1.2     ! raeburn    15:         browser security constraints, but the paste action can be done using  
1.1       raeburn    16:         \texttt{ctrl-V} (web browsers want to make sure that a web site cannot read a user's clipboard 
                     17:         without an explicit user action such as \texttt{ctrl-V}).
1.2     ! raeburn    18:   \item \textit{Search}: displays a dialog to search and possibly replace text in the document.
        !            19:   \item \textit{Insert image}: displays a dialog to choose an already uploaded image. 
1.1       raeburn    20:         If an image needs to be uploaded first, users currently have to switch to another tab 
                     21:         to do that outside of Daxe. Daxe will automatically measure an image's dimensions 
                     22:         and insert the width and height in the attributes. An \textit{alt} attribute should also be provided 
                     23:         as a text alternative. The image will display directly in the document. Attributes can be modified by clicking on it.
1.2     ! raeburn    24:   \item \textit{Insert symbol}: provides a list of symbols that can be inserted as Unicode characters.  
1.1       raeburn    25:         Note that, although this is less and less likely to happen, some Unicode characters might not be visible to 
                     26:         students who do not have the right fonts.
1.2     ! raeburn    27:   \item \textit{Insert LaTeX math}: displays a dialog to type LaTeX math, with a real-time preview. 
1.1       raeburn    28:         Note that the \$ signs are necessary for math to be correctly displayed in LON-CAPA.
                     29:         \texttt{\$\$...\$\$} can be used instead of \texttt{\$...\$} to display the math as a block, centered.  
                     30:         Alternatively, the other LaTeX math delimiters can be used: 
                     31:         \texttt{$\backslash$(...$\backslash$)} for inline math and \texttt{$\backslash$[...$\backslash$]} for display math.  
                     32:         LaTeX math should always be inside an \texttt{m} element, which is created automatically when the \$ button is used.
1.2     ! raeburn    33:   \item \textit{Insert LON-CAPA math}: use this button to directly type math with the LON-CAPA math syntax in the document.  
1.1       raeburn    34:         A real-time preview is displayed underneath, and a click outside the text field replaces the text by the preview.  
                     35:         There are two options for interpreting the math: \textit{symbols} and \textit{units}.  
                     36:         With \textit{symbols}, all letters are interpreted as variables and displayed with an italic font.   
                     37:         With \textit{units}, units such as ``m'' are recognized and displayed normally.  
1.2     ! raeburn    38:         Internally within an LON-CAPA document, the math expression you type is wrapped within \texttt{$<$lm$>$ $<$/lm$>$} tags.  
1.1       raeburn    39:         If a resource containing these tags is rendered on a LON-CAPA server running an older (pre-2.12) version of LON-CAPA, 
                     40:         the tags will be ignored and the text will be displayed without any special formatting.
1.2     ! raeburn    41:   \item \textit{Insert table}: asks for the table attributes and inserts it with 2 rows and columns.  
1.1       raeburn    42:         Rows and columns can be changed with the table toolbar.
1.2     ! raeburn    43:   \item \textit{Bulleted list}: turns the current paragraph into a bulleted list, or removes the list.
        !            44:   \item \textit{Ordered list}: turns the current paragraph into an ordered list, or removes the list.
        !            45:   \item \textit{Raise list level}: turns a first-level list item into a simple paragraph, or moves the list indent left.
        !            46:   \item \textit{Lower list level}: moves the list indent right.
        !            47:   \item \textit{Add hyperlink}: adds a hyperlink over the selected text. Make sure to fill in the \textit{href} attribute 
1.1       raeburn    48:          with the link address, which can be relative or absolute.
1.2     ! raeburn    49:   \item \textit{Insert anchor}: inserts an HTML anchor at the cursor position. Make sure to fill the \textit{name} attribute.
        !            50:   \item \textit{Styles}: turns selected text into one of these styles: bold, italic, superscript, subscript.
1.1       raeburn    51:         A CSS stylesheet should be used for more style control. When the style is chosen before typing (with no selection), 
                     52:         the style element's tags are visible, which makes it possible to remove empty style elements.
1.2     ! raeburn    53:   \item \textit{Remove styles}: removes all styles from the current selection.
        !            54:   \item \textit{Paragraph alignment}: changes the current paragraph alignment.  
1.1       raeburn    55:         This is only possible if the cursor is within a paragraph.
1.2     ! raeburn    56:   \item \textit{Font type}: changes the font family for the selected text.  
1.1       raeburn    57:         A CSS stylesheet should be used for more style control.
1.2     ! raeburn    58:   \item \textit{Insert section}: inserts a section with the chosen class at the cursor location.  
1.1       raeburn    59:         Sections are useful to structure the text with explicit roles for each block, and the icons can be useful 
                     60:         for students to recognize each role. Once several sections of a given class are defined, 
                     61:         it is easy to change the display for all of them at the same time using CSS.
                     62: \end{itemize}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>