On Fri, Jun 19, 2015 at 08:13:45AM +0000, Guenter Milde wrote:

> On 2015-06-19, Scott Kostyshak wrote:
> > We have all of the information/patches needed to resolve the following
> > ticket: http://www.lyx.org/trac/ticket/2342
> 
> > What should we export for plain text for math? For example, if we have a
> > math inset with $\delta$ what should be exported?
> 
> > I see the following options:
> 
> > 1. \delta (current behavior)
> > 2. $\delta$ (Enrico's proposed behavior)
> > 3. delta
> 
> 4. δ 03B4     GREEK SMALL LETTER DELTA
> 5. 𝛥 1D6E5    MATHEMATICAL ITALIC CAPITAL DELTA
> 
> Matching Unicode characters can be determined from the "mathcommand" in 
> "unicodesymbols". This would also work for many non-alphabetical symbols
> like arrows and operators.
> 
> > I have mixed opinions. The reason why I originally liked option (1) is
> > because $U$-shaped was exported as U-shaped. I could easily copy the
> > abstract of my paper and paste that into a text box for submission of an
> > abstract to a conference.
> 
> I would argue, that $U$-shaped is wrong use of a formula inset in the first
> place (unless this is not in the common sense of "shaped like a letter U" but
> you define a variable $U$ for the shape of an object earlier in your text
> and use it then).
> 
> There are many such cases of "formula for text styling", like "20 $\mu$m"
> (locigally and visually wrong, because the SI-prefix µ is a constant
> factor and (like any physical unit) must be written upright, not italic).
> 
> > However, for cases such as $\delta$, I am not so sure. Option (1) seems
> > strange because it is hybrid LaTeX.
> 
> > Any thoughts?
> 
> It really depends on the use case. Some examples:
> 
> * (1) is a simple, informal representation for humans familiar with LaTeX
>       syntax. Problematic for programmatic post-processing of the text.
> 
> * (2) Can be annoying/hard to read/, but is correct and predictable.
>       would fit nice when dropping the text into a text box of a page using 
>       MathJax or a reStructuredText text (rST would requqire to change the
>       $ $ into :math:` ` but otherwise uses LaTeX syntax for maths).
>       
>       Should formulas that can be easily expressed in text
>       like "2x" be wrapped in $$, too?
>       
> * (4) Is preferred if the text encoding is Unicode and there is a "normal"
>       international text font (with Greek but no mathematical alphanumerical
>       characters). 
> 
> * (5) Is preferred if the text encoding is Unicode and the target
>       device/program has access to a "mathematical" font that includes the
>       mathematical symbols.

What about the attached example? I fail to see how something different
than (2) can be used. It currently is pasted as

f(x)    =\int_{0}^{x}f(y)dy
s       =(\begin{array}{cc}
a & b\end{array})\left(\begin{array}{c}
c\\
d
\end{array}\right)

-- 
Enrico
#LyX 2.1 created this file. For more info see http://www.lyx.org/
\lyxformat 474
\begin_document
\begin_header
\textclass article
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_math auto
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\use_hyperref false
\papersize default
\use_geometry false
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Standard
\begin_inset Formula 
\begin{align*}
f(x) & =\int_{0}^{x}f(y)dy\\
s & =(\begin{array}{cc}
a & b\end{array})\left(\begin{array}{c}
c\\
d
\end{array}\right)
\end{align*}

\end_inset


\end_layout

\end_body
\end_document

Reply via email to