mirror of
https://github.com/typst/typst
synced 2025-08-15 23:48:32 +08:00
Minor corrections
This commit is contained in:
parent
42519403d5
commit
3e55525849
@ -245,9 +245,8 @@ pub struct CompileArgs {
|
|||||||
#[arg(long = "pdf-version")]
|
#[arg(long = "pdf-version")]
|
||||||
pub pdf_version: Option<PdfVersion>,
|
pub pdf_version: Option<PdfVersion>,
|
||||||
|
|
||||||
/// A number of PDF standards that Typst will enforce
|
/// One (or multiple comma-separated) PDF standards that Typst will enforce
|
||||||
/// conformance with (currently, only one standard at a time
|
/// conformance with.
|
||||||
/// is supported).
|
|
||||||
#[arg(long = "pdf-standard", value_delimiter = ',')]
|
#[arg(long = "pdf-standard", value_delimiter = ',')]
|
||||||
pub pdf_standard: Vec<PdfStandard>,
|
pub pdf_standard: Vec<PdfStandard>,
|
||||||
|
|
||||||
@ -492,7 +491,7 @@ display_possible_values!(PdfVersion);
|
|||||||
#[derive(Debug, Copy, Clone, Eq, PartialEq, ValueEnum)]
|
#[derive(Debug, Copy, Clone, Eq, PartialEq, ValueEnum)]
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
pub enum PdfStandard {
|
pub enum PdfStandard {
|
||||||
/// PDF/A-2u.
|
/// PDF/A-1b.
|
||||||
#[value(name = "a-1b")]
|
#[value(name = "a-1b")]
|
||||||
A_1b,
|
A_1b,
|
||||||
/// PDF/A-2b.
|
/// PDF/A-2b.
|
||||||
|
@ -55,7 +55,7 @@ pub struct CompileConfig {
|
|||||||
pub output_format: OutputFormat,
|
pub output_format: OutputFormat,
|
||||||
/// Which pages to export.
|
/// Which pages to export.
|
||||||
pub pages: Option<PageRanges>,
|
pub pages: Option<PageRanges>,
|
||||||
/// The document's creation date formatted as a UNIX timestamp.
|
/// The document's creation date formatted as a UNIX timestamp, with UTC suffix.
|
||||||
pub creation_timestamp: Option<DateTime<Utc>>,
|
pub creation_timestamp: Option<DateTime<Utc>>,
|
||||||
/// The format to emit diagnostics in.
|
/// The format to emit diagnostics in.
|
||||||
pub diagnostic_format: DiagnosticFormat,
|
pub diagnostic_format: DiagnosticFormat,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user