
我将我的文档定义为“希伯来语文章”。我有几个段落样式,例如“证明”、“定理”、“备注”等,但没有“示例”段落样式。
为什么?我该如何添加它?
谢谢!
编辑:
以下是该文件的来源:
#LyX 2.2 created this file. For more info see http://www.lyx.org/
\lyxformat 508
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass heb-article
\use_default_options true
\begin_modules
theorems-std
\end_modules
\maintain_unincluded_children false
\language hebrew
\language_package default
\inputencoding cp1255
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry true
\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
\leftmargin 2cm
\topmargin 2cm
\rightmargin 2cm
\bottommargin 2cm
\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 Title
בדיקה
\end_layout
\begin_layout Problem
\end_layout
\end_body
\end_document
答案1
我知道已经过去了将近一年,但仍然如此。我遇到了同样的问题,我也希望将这个“示例”段落样式添加到希伯来语文章布局中。经过这么多尝试,我想我终于设法编辑了布局文件,没有任何编译错误报告。
只需将以下行添加到 heb-article.layout 文件,它就会向布局添加“示例”段落样式以及“练习”和“解决方案”样式
Style Example
CopyStyle Theorem
LatexName example
LabelString "Example #."
Preamble
\newtheorem{example}[theorem]{\R{דוגמה}}
EndPreamble
End
Style Exercise
CopyStyle Theorem
LatexName exercise
LabelString "Exercise #."
Preamble
\newtheorem{exercise}[theorem]{\R{תרגיל}}
EndPreamble
End
Style Solution
Category Reasoning
Margin First_Dynamic
LatexType Environment
LatexName solution
NextNoIndent 1
LabelSep xx
ParIndent MMM
ParSkip 0.4
ItemSep 0.2
TopSep 0.7
BottomSep 0.7
ParSep 0.3
Align Block
AlignPossible Block, Left
LabelType Static
LabelString "פתרון:"
Font
Shape Up
Size Normal
EndFont
LabelFont
Shape Up
Series Bold
EndFont
Preamble
\newenvironment{solution}%
{\R{\textbf{פתרון:}}}%
{\hfill\rule{0mm}{0mm}\par\vspace{0mm}}
EndPreamble
End
我的荣幸