mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
Increase tex2lyx output format to 310.
299-302: Nothing to do (empty lyx2lyx conversion) 303: Nothing to do (tex2lyx did not use the serbocroation language) 304: Convert framed and greyed out notes to box insets 305-310: Nothing to do (empty lyx2lyx conversion) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36947 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2d5e1123d1
commit
d1be0d2af7
@ -1,3 +1,5 @@
|
|||||||
|
%% LyX trick_preamble_code_into_believing_that_this_was_created_by_lyx created this file. For more info, see http://www.lyx.org/.
|
||||||
|
%% Do not edit unless you really know what you are doing.
|
||||||
\documentclass[b4paper,twoside, twocolumn,12pt]{article}
|
\documentclass[b4paper,twoside, twocolumn,12pt]{article}
|
||||||
|
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
@ -8,12 +10,22 @@
|
|||||||
|
|
||||||
\usepackage{amsmath}
|
\usepackage{amsmath}
|
||||||
\usepackage{color}
|
\usepackage{color}
|
||||||
|
\definecolor{note_fontcolor}{rgb}{0, 0, 1}
|
||||||
|
\definecolor{shadecolor}{rgb}{1, 0, 0}
|
||||||
|
\usepackage{framed}
|
||||||
|
|
||||||
\setlength{\parskip}{3mm}
|
\setlength{\parskip}{3mm}
|
||||||
\setlength{\parindent}{0sp}
|
\setlength{\parindent}{0sp}
|
||||||
\usepackage{setspace}
|
\usepackage{setspace}
|
||||||
\setstretch{1.2}
|
\setstretch{1.2}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
|
||||||
|
|
||||||
|
%% The greyedout annotation environment
|
||||||
|
\newenvironment{lyxgreyedout}{\textcolor{note_fontcolor}\bgroup}{\egroup}
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
|
||||||
|
|
||||||
\setlength{\fboxsep}{3mm}
|
\setlength{\fboxsep}{3mm}
|
||||||
|
|
||||||
\definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
|
\definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
|
||||||
@ -105,6 +117,15 @@ Dies ist ein Beispieltext.
|
|||||||
|
|
||||||
$\boxed{\int A=B}$
|
$\boxed{\int A=B}$
|
||||||
|
|
||||||
|
\subsection{LyX Boxes}
|
||||||
|
|
||||||
|
\begin{lyxgreyedout}
|
||||||
|
\textbf{Note:} Not all DVI-viewers are able to display rotations.
|
||||||
|
\end{lyxgreyedout}
|
||||||
|
|
||||||
|
\begin{shaded}%
|
||||||
|
Shaded background box\end{shaded}
|
||||||
|
|
||||||
\section{Colors}
|
\section{Colors}
|
||||||
|
|
||||||
\subsection{Predefined Colors}
|
\subsection{Predefined Colors}
|
||||||
|
@ -114,7 +114,7 @@ extern CommandMap known_math_environments;
|
|||||||
///
|
///
|
||||||
extern bool noweb_mode;
|
extern bool noweb_mode;
|
||||||
/// LyX format that is created by tex2lyx
|
/// LyX format that is created by tex2lyx
|
||||||
int const LYX_FORMAT = 298;
|
int const LYX_FORMAT = 310;
|
||||||
|
|
||||||
/// path of the master .tex file
|
/// path of the master .tex file
|
||||||
extern std::string getMasterFilePath();
|
extern std::string getMasterFilePath();
|
||||||
|
@ -817,21 +817,22 @@ void parse_environment(Parser & p, ostream & os, bool outer,
|
|||||||
p.skip_spaces();
|
p.skip_spaces();
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (name == "framed") {
|
else if (name == "framed" || name == "shaded") {
|
||||||
eat_whitespace(p, os, parent_context, false);
|
eat_whitespace(p, os, parent_context, false);
|
||||||
parent_context.check_layout(os);
|
parent_context.check_layout(os);
|
||||||
begin_inset(os, "Note Framed\n");
|
if (name == "framed")
|
||||||
os << "status open\n";
|
begin_inset(os, "Box Framed\n");
|
||||||
parse_text_in_inset(p, os, FLAG_END, outer, parent_context);
|
else
|
||||||
end_inset(os);
|
begin_inset(os, "Box Shaded\n");
|
||||||
p.skip_spaces();
|
os << "position \"t\"\n"
|
||||||
}
|
"hor_pos \"c\"\n"
|
||||||
|
"has_inner_box 0\n"
|
||||||
else if (name == "shaded") {
|
"inner_pos \"t\"\n"
|
||||||
eat_whitespace(p, os, parent_context, false);
|
"width \"100col%\"\n"
|
||||||
parent_context.check_layout(os);
|
"special \"none\"\n"
|
||||||
begin_inset(os, "Note Shaded\n");
|
"height \"1in\"\n"
|
||||||
os << "status open\n";
|
"height_special \"totalheight\"\n"
|
||||||
|
"status open\n";
|
||||||
parse_text_in_inset(p, os, FLAG_END, outer, parent_context);
|
parse_text_in_inset(p, os, FLAG_END, outer, parent_context);
|
||||||
end_inset(os);
|
end_inset(os);
|
||||||
p.skip_spaces();
|
p.skip_spaces();
|
||||||
|
Loading…
Reference in New Issue
Block a user