
이 질문은 이미 제기되어 답변되었습니다.여기미국인의 경우:
\documentclass{article}
\usepackage{csquotes}
\usepackage[american]{babel}
\DeclareQuoteStyle[american]{english}% verified
{\textquotedblleft}
[\textquotedblleft]
{\textquotedblright}
[0.05em]
{\textquoteleft}
{\textquoteright}
\MakeOuterQuote{"}
\begin{document}
"This is a quotation," he said. "It continues onto the next paragraph.
Here is the continuation of my quote. As per literary convention,
there is no end-quote at the end of the previous paragraph."
\end{document}
하지만 프랑스어에 맞게 조정해야 합니다.
일반적으로 LyX 문서에서는 첫 번째 부분을 \begin{document}
프리앰블 앞에 배치하고 LyX 편집기를 제외한 나머지 부분을 배치 \begin
하면 \end
작동합니다(문서 클래스가 LyX 인터페이스에 선언되고 LyX가 선언하는 경우 제외 \language
).
첫 번째 문제:생성된 PDF에는 중간 인용문(중간 단락을 시작하는 인용문)이 없습니다.
두 번째 문제:프랑스어에 맞게 코드를 조정하려고 시도했지만 성공하지 못했습니다.
%\documentclass{article}
\usepackage{csquotes}
\usepackage[frenchle]{babel}
%\usepackage[american]{babel}
\DeclareQuoteStyle[french]{guillemets}
%\DeclareQuoteStyle[american]{english}% verified
{\guillemotleft}
[\guillemotleft]
{\guillemotright}
[0.05em]
{\guillemotleft}
{\guillemotright}
\MakeOuterQuote{"}
PDF 출력은 정확히 동일합니다. 하지만 포인트 1에 연결되어 있다고 가정합니다. 전체 LyX 코드는 다음과 같습니다( \language
텍스트 편집기에서 직접 편집해야 합니다. 그렇지 않으면 LyX가 인터페이스에서 français를 제안하지만 오류가 발생합니다).
#LyX 2.1 created this file. For more info see http://www.lyx.org/
\lyxformat 474
\begin_document
\begin_header
\textclass article
\begin_preamble
%\documentclass{article}
\usepackage{csquotes}
\usepackage[frenchle]{babel}
%\usepackage[american]{babel}
\DeclareQuoteStyle[french]{guillemets}
%\DeclareQuoteStyle[american]{english}% verified
{\guillemotleft}
[\guillemotleft]
{\guillemotright}
[0.05em]
{\guillemotleft}
{\guillemotright}
\MakeOuterQuote{"}
%\MakeAutoQuote{«}{»}
\end_preamble
\use_default_options true
\maintain_unincluded_children false
\language frenchle
\language_package default
\inputencoding utf8
\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
\spacing single
\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 Verbatim
\end_layout
\begin_layout Verbatim
"This is a quotation," he said.
"It continues onto the next paragraph.
\end_layout
\begin_layout Verbatim
\end_layout
\begin_layout Verbatim
Here is the continuation of my quote.
As per literary convention,
\end_layout
\begin_layout Verbatim
there is no end-quote at the end of the previous paragraph."
\end_layout
\begin_layout Verbatim
\end_layout
\begin_layout Verbatim
blabla
\end_layout
\begin_layout Verbatim
\end_layout
\begin_layout Verbatim
«This is a quotation,» he said.
«It continues onto the next paragraph.
\end_layout
\begin_layout Verbatim
\end_layout
\begin_layout Verbatim
Here is the continuation of my quote.
As per literary convention,
\end_layout
\begin_layout Verbatim
there is no end-quote at the end of the previous paragraph.»
\end_layout
\begin_layout Verbatim
\end_layout
\end_body
\end_document
세 번째 포인트:. 대신 LyX 편집기에 입력할 수 있도록 \MakeAutoQuote{«}{»}
with 를 사용할 수 있는지 궁금합니다 . 대신 사용하고 싶지만 프리앰블에서 프랑스어 스타일을 선택해 도 여전히 출력됩니다 .\DeclareQuoteStyle
«some text»
"some text"
«some text»
« some text »
« some text »
답변1
아래 코드를 사용하면 일반으로 이를 얻을 수 있습니다 pdflatex
.
... 그것이 당신이 원하는 것인지 확실하지 않습니다. \DeclareQuoteAlias[french]{guillemets}{french}
문제 1과 2를 (다시) 수행해야 했던 것 같습니다 . 특히 \MakeAutoQuote{«}{»}
문제 3의 전문에 나와 있습니다. MWE는 다음과 같습니다.
\documentclass{article}
\usepackage{xcolor}
\pagecolor{yellow!10}
\usepackage[utf8]{inputenc} % must have, to be able to enter {«}{»} for \MakeAutoQuote
\usepackage[T1]{fontenc}
\usepackage{csquotes}
\usepackage[french]{babel}
\DeclareQuoteStyle[french]{guillemets}
%\DeclareQuoteStyle[american]{english}% verified
{\guillemotleft}
[\guillemotleft]
{\guillemotright}
[0.05em]
{\guillemotleft}
{\guillemotright}
\MakeAutoQuote{«}{»} % works fine here (with utf8 support)
\MakeOuterQuote{"}
% from tex/latex/csquotes/csquotes.def:
% http://de.comp.text.tex.narkive.com/bQLQv3EF/csquotes-und-blockquote
\DeclareQuoteAlias[french]{guillemets}{french}
\begin{document}
\typeout{language is \languagename} % language is french
"This is a quotation," he said. "It continues onto the next paragraph.
Here is the continuation of my quote. As per literary convention,
there is no end-quote at the end of the previous paragraph."
% \MakeAutoQuote{«}{»} % passes here, if not used in preamble - but doesn't add the « on the second paragraph
% \MakeOuterQuote{«} % causes "! Package csquotes Error: Invalid argument."
«This is a quotation,» he said. «It continues onto the next paragraph.
Here is the continuation of my quote. As per literary convention,
there is no end-quote at the end of the previous paragraph.»
\end{document}