Commit 821380e5 authored by tsuji's avatar tsuji

Releaseフォルダを追加

parent bdd144bb
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="GetADoc.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<userSettings>
<GetADoc.Properties.Settings>
<setting name="box1Setting" serializeAs="String">
<value />
</setting>
<setting name="checkbox1Setting" serializeAs="String">
<value>False</value>
</setting>
<setting name="checkbox2Setting" serializeAs="String">
<value>False</value>
</setting>
<setting name="checkbox3Setting" serializeAs="String">
<value>False</value>
</setting>
</GetADoc.Properties.Settings>
</userSettings>
</configuration>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
// サブドキュメント化のマクロ
ifndef::IncDocDir[]
:IncDocDirTmp: {IncDocName}
endif::[]
ifdef::IncDocDir[]
:IncDocDirTmp: {IncDocDir}
endif::[]
:imagesdir_back: {imagesdir}
:imagesdir: {IncDocDirTmp}/Images
ifndef::IncDocLvl[]
:IncDocLvl: +2
endif::[]
// タグが定義されていたらその範囲を取り込む
ifdef::IncDocTag[]
include::./{IncDocDirTmp}/{IncDocName}.adoc[tag={IncDocTag},leveloffset={IncDocLvl}]
endif::[]
// タグが無い場合は、サブドキュメント全体を取り込む
ifndef::IncDocTag[]
include::./{IncDocDirTmp}/{IncDocName}.adoc[leveloffset={IncDocLvl}]
endif::[]
// restore
:imagesdir: {imagesdir_back}
////
// tag::HelpSeparationDoc[]
.##分離ドキュメントのヘルプです (行削除)##
[%collapsible]
=============================================
========================
.◆分離ドキュメント構成の雛形です
画像ディレクトリは各ドキュメントの"Images"ディレクトリに固定。
----
TemplateSeparateDocRoot.adoc
├─ Sub_First
│ │ config.adoc
│ │ Sub_First.adoc
│ └─Images
└─ Sub_Second
│ config.adoc
│ Sub_Second.adoc
└─Images
----
.◆ルートドキュメント側の記述方法
サブドキュメントには不要。サブドキュメントのインクルード毎に記述する
``:IncDocName: <サブドキュメント名>``: ::
[必須] インクルードする<サブドキュメント名>を指定。
実際のファイルは<サブドキュメント名>.adoc と拡張子をつけること。
``include::IncDoc.adoc[]``: ::
[必須] サブドキュメントをインクルードする場所。固定記述。
``:IncDocDir: <ディレクトリ名>``: ::
[省略可] インクルードする<ディレクトリ名>を指定。
省略した場合は<サブドキュメント名>が<ディレクトリ名> になる。
``:IncDocLvl: <レベル>``: ::
[省略可] サブドキュメントレベルを+Nで指定する。
タイトル行の"="のレベルを下げることができる +2を指定すると、"="が"==="としてIncludeされる。省略値は +2。
``:IncDocTag: sub``: ::
[省略可] サブドキュメントの取り出し範囲を指定します。サブドキュメント側タグ属性``sub[]``の領域を取り込む。
省略した場合、サブドキュメント全体を取り込みます。
.◆サブドキュメント側の記述
サブドキュメントは通常のAsciiDocの記述。
取り込み範囲を指定したい場合はルートドキュメント側``:IncDocTag: sub``指定に合わせて、以下のタグを指定する。
記述が無い場合、全体を取り組む。タグ名(sub)を変更すれば、別の範囲も取り込み可能。
----
// サブドキュメントの取り込み範囲
// tag::sub[]
... 取り込みたい部分
// end::sub[]
----
.◆例 ルートドキュメント側
例.最小限: フォルダ名とサブドキュメント名が同一::
+
----
--- root.adoc --------
= Root title
...
== First SubDocument
:IncDocName: Sub_First
include::IncDoc.adoc[]
== Second SubDocument
:IncDocName: Sub_Second
include::IncDoc.adoc[]
----------------------
root.adoc
+-- Sub_First\
+ Sub_First.adoc
+ confing.adoc
+-- Sub_Second\
+ Sub_Second.adoc
+ confing.adoc
----
例.カスタム: ディレクトリ名変更::
+
----
--- root.adoc --------
= Root title
...
:IncDocDir: 01_Func
:IncDocLvl: +2
== First SubDocument
:IncDocName: Sub_First
include::IncDoc.adoc[]
== Second SubDocument
:IncDocName: Sub_Second
include::IncDoc.adoc[]
----------------------
サブドキュメントを01_FuncフォルダにSub_First.adocとSub_Second.adocを配置
root.adoc
+-- 01_Func\
+ Sub_First.adoc
+ Sub_Second.adoc
----
========================
=============================================
// end::HelpSeparationDoc[]
////
font:
catalog:
KaiGen Gothic JP:
normal: KaiGenGothicJP-Regular.ttf
bold: KaiGenGothicJP-Bold.ttf
italic: KaiGenGothicJP-Regular-Italic.ttf
bold_italic: KaiGenGothicJP-Bold-Italic.ttf
Roboto Mono:
normal: RobotoMono-Regular.ttf
bold: RobotoMono-Bold.ttf
italic: RobotoMono-Italic.ttf
bold_italic: RobotoMono-BoldItalic.ttf
fallbacks:
- KaiGen Gothic JP
page:
background_color: ffffff
layout: portrait
# NOTE multiply inches by 72 to get pt values
#margin: [0.5 * 72, 0.67 * 72, 0.67 * 72, 0.67 * 72]
margin: [0.5in, 0.67in, 0.67in, 0.67in]
# size can be a named size (e.g., A4) or custom dimensions (e.g., [8.25in, 11.69in])
size: Letter
base:
# color as hex string (leading # is optional)
font_color: 333333
# color as RGB array
#font_color: [51, 51, 51]
# color as CMYK array (approximated)
#font_color: [0, 0, 0, 0.92]
#font_color: [0, 0, 0, 92%]
font_family: KaiGen Gothic JP
# choose one of these font_size/line_height_length combinations
#font_size: 14
#line_height_length: 20
#font_size: 11.25
#line_height_length: 18
#font_size: 11.2
#line_height_length: 16
font_size: 10.5
#line_height_length: 15
# correct line height for Noto Serif metrics
line_height_length: 15
#font_size: 11.25
#line_height_length: 18
line_height: $base_line_height_length / $base_font_size
font_size_large: round($base_font_size * 1.25)
font_size_small: round($base_font_size * 0.85)
font_size_min: $base_font_size * 0.75
font_style: normal
align: left
border_radius: 4
border_width: 0.5
border_color: eeeeee
# FIXME vertical_rhythm is weird; we should think in terms of ems
#vertical_rhythm: $base_line_height_length * 2 / 3
# correct line height for Noto Serif metrics
vertical_rhythm: $base_line_height_length
horizontal_rhythm: $base_line_height_length
link:
font_color: 428bca
# literal is currently used for inline monospaced in prose and table cells
literal:
font_color: b12146
font_family: Roboto Mono
heading:
#font_color: 181818
font_color: $base_font_color
font_family: $base_font_family
# h1 is used for part titles
h1_font_size: floor($base_font_size * 2.6)
# h2 is used for chapter titles
h2_font_size: floor($base_font_size * 2.15)
h3_font_size: round($base_font_size * 1.7)
h4_font_size: $base_font_size_large
h5_font_size: $base_font_size
h6_font_size: $base_font_size_small
font_style: bold
#line_height: 1.4
# correct line height for Noto Serif metrics
line_height: 1.2
margin_top: $vertical_rhythm * 0.2
margin_bottom: $vertical_rhythm * 0.8
title_page:
align: right
title_top: 55%
title_font_size: $heading_h1_font_size
title_font_color: 999999
title_line_height: 0.9
subtitle_font_size: $heading_h3_font_size
subtitle_font_style: bold_italic
subtitle_line_height: 1
authors_margin_top: $base_font_size * 1.25
authors_font_size: $base_font_size_large
authors_font_color: 181818
revision_margin_top: $base_font_size * 1.25
#prose:
# margin_top: 0
# margin_bottom: $vertical_rhythm
block:
#margin_top: 0
#margin_bottom: $vertical_rhythm
padding: [$vertical_rhythm, $vertical_rhythm * 1.25, $vertical_rhythm, $vertical_rhythm * 1.25]
# code is used for source blocks (perhaps change to source or listing?)
caption:
font_style: italic
align: left
# FIXME perhaps set line_height instead of / in addition to margins?
margin_inside: $vertical_rhythm * 0.25
margin_outside: 0
code:
font_color: $base_font_color
#font_family: Liberation Mono
#font_size: floor($base_font_size * 0.9)
#font_size: 10
#padding: [9.5, 9.5, 9.5, 9.5]
# LiberationMono carries extra gap below line
#padding: [10, 10, 7.5, 10]
#line_height: 1.45
font_family: $literal_font_family
font_size: ceil($base_font_size)
#padding: [$base_font_size, $code_font_size, $base_font_size, $code_font_size]
padding: $code_font_size
line_height: 1.25
background_color: f5f5f5
border_color: cccccc
border_radius: $base_border_radius
border_width: 0.75
blockquote:
font_color: $base_font_color
font_size: $base_font_size_large
border_width: 5
border_color: $base_border_color
cite_font_size: $base_font_size_small
cite_font_color: 999999
sidebar:
border_color: $page_background_color
border_radius: $base_border_radius
border_width: $base_border_width
background_color: eeeeee
title_font_color: $heading_font_color
title_font_family: $heading_font_family
title_font_size: $heading_h4_font_size
title_font_style: $heading_font_style
title_align: center
example:
border_color: $base_border_color
border_radius: $base_border_radius
border_width: 0.75
background_color: transparent
admonition:
border_color: $base_border_color
border_width: $base_border_width
conum:
font_family: $literal_font_family
font_color: $literal_font_color
font_size: $base_font_size
line_height: 4 / 3
image:
align_default: left
scaled_width_default: 0.5
lead:
# QUESTION what about $base_font_size_large?
#font_size: floor($base_line_height_length * 0.8)
#font_size: floor($base_font_size * 1.15)
#line_height: 1.3
font_size: $base_font_size_large
line_height: 1.4
abstract:
#font_color: 404040
font_color: 5c6266
font_size: $lead_font_size
line_height: $lead_line_height
font_style: italic
thematic_break:
border_color: $base_border_color
margin_top: $vertical_rhythm * 0.5
margin_bottom: $vertical_rhythm * 1.5
description_list:
term_font_style: italic
description_indent: $horizontal_rhythm * 1.25
outline_list:
indent: $horizontal_rhythm * 1.5
# NOTE item_spacing applies to list items that do not have complex content
item_spacing: $vertical_rhythm / 2
#marker_font_color: 404040
table:
background_color: $page_background_color
#head_background_color: <hex value>
#head_font_color: $base_font_color
even_row_background_color: f9f9f9
#odd_row_background_color: <hex value>
foot_background_color: f0f0f0
border_color: dddddd
border_width: $base_border_width
# HACK accounting for line-height
cell_padding: [3, 3, 6, 3]
toc:
indent: $horizontal_rhythm
dot_leader_color: dddddd
#dot_leader_content: ". "
line_height: 1.4
# NOTE In addition to footer, header is also supported
footer:
font_size: $base_font_size_small
font_color: $base_font_color
# NOTE if background_color is set, background and border will span width of page
border_color: dddddd
border_width: 0.25
height: $base_line_height_length * 2.5
padding: [$base_line_height_length / 2, 1, 0, 1]
valign: top
#image_valign: <alignment> or <number>
# additional attributes for content:
# * {page-count}
# * {page-number}
# * {document-title}
# * {document-subtitle}
# * {chapter-title}
# * {section-title}
# * {section-or-chapter-title}
recto_content:
#right: '{section-or-chapter-title} | {page-number}'
#right: '{document-title} | {page-number}'
right: '{page-number}'
#center: '{page-number}'
verso_content:
#left: '{page-number} | {chapter-title}'
left: '{page-number}'
#center: '{page-number}'
This diff is collapsed.

:lang: ja
:docname: ReadMeAsciiDocTool
:conf: {docname}.adoc
include::{conf}[tag="CONFIG"}]
//:toc: left
// Custom Icons(J)
//:icons: image
//:iconsdir: icons
//:icontype: png
//
{ExtendStyle}
// After need empty-one-line
= ReadMe.AsciiDocTool
[.text-right]
--
2021/09/13 AP開発 松尾
--
// tag::sub[]
== 概要
AsciiDotの雛形を作るコマンドラインツールです。
コマンドラインからgetAdoc.batを利用します。以下例です
. ``getAdoc <ドキュメント名>``
最小限の雛形を作成する。<ドキュメント名>.adocを作成。config.adocとImagesフォルダを作成します。
. ``getAdoc /Icons <ドキュメント名>``
脚注アイコン(警告、注意など)をマニュアル風に変更します。
+
====
image:cicon.png[t,600]
====
. ``getAdoc /Icons /SCREEN <ドキュメント名>``
脚注アイコンと共に、SCREEN GAのタイトルロゴ、Confidentialを頭に追記します。
+
====
image:screenForm.png[t,600]
====
. ``getAdoc /Icons /SCREEN /SepaDoc <ドキュメント名>``
分割ドキュメント形式の雛形を作成します。(フルセット)
+
====
image:tree.png[t,200]
====
== ヘルプ
コマンドラインからgetAdoc.bat /?で以下のヘルプを表示
----
getADoc /S|SepaDoc /O|OneDoc /I|Icons /SCREEN /Force *
* adocの雛形を作成します
- /S|SepaDoc :分割ドキュメントの雛形
- /O|OneDoc :埋め込み型1つのadoc雛形
- /I|Icons :Custom ICONSs配置
- /SCREEN :SCREEN GAロゴ入り
- /Force :強制上書き
- * :adocのファイル名称を指定します
----
// end::sub[]
END
//////////////////////////////////////////////////////////////
// tag::CONFIG[] ↓↓ここからメイン文書に差し込み
:hardbreaks:
:imagesdir: Images
:doctype: article
:toclevels: 3
:sectnums:
:sectnumlevels: 4
:sectlinks:
:icons: font
:data-uri:
:experimental:
ifeval::["{lang}" == "ja"]
:toc-title: 目次
:example-caption:
:caption:
:table-caption: 表
:figure-caption: 図
:preface-title: はじめに/まえがき
:appendix-caption: 付録
:caution-caption: 注意
:important-caption: 重要
:last-update-label: 最終更新
:listing-caption: リスト
:manname-title: 名前
:note-caption: 注記
:warning-caption: 警告
:tip-caption: ヒント
:untitled-label: 無題
:version-label: バージョン
endif::[]
ifeval::["{lang}" != "ja"]
:example-caption:
:caption:
endif::[]
// Macro
:experimental:
:ExtendStyle: pass:none[ \
<style> \
.nw{display:inline-block;white-space:pre;} \
.nowrap{display:inline-block;white-space:pre;} \
</style>]
// obsolate
:NoWrap: pass:[<span style="display:inline-block;white-space:pre;">]
:Wrap: pass:[<span style="display:inline;white-space:pre;">]
:End: pass:[</span>]
:br: pass:p[ +]
// end::CONFIG[] ↑↑ここまでメイン文書に差し込み
//////////////////////////////////////////////////////////////
This diff is collapsed.

:lang: ja
include::config.adoc[]
:toc!:
//@ICON_CUSTOM@
{ExtendStyle}
// After need empty-one-line
//@SCREEN_LOGOS@
// セクション取り込みレベル
:IncDocLvl: +2
// 取り込み範囲
:IncDocTag: sub
= @FILENAME@ =
[.text-right]
--
@DATE@
--
// ↓↓↓分離ドキュメントのヘルプ。コメントアウト もしくは行削除のこと
include::incDoc.adoc[tag=HelpSeparationDoc]
// ↑↑↑
//=======================================================================
== First SubDocument
// 省略可能
// :IncDocDir: Sub_First_Dir
// :IncDocTag: sub
//
:IncDocName: Sub_First
include::IncDoc.adoc[]
//=======================================================================
== Second SubDocument
// 省略可能
// :IncDocDir: Sub_Second_Dir
// :IncDocTag: sub
//
:IncDocName: Sub_Second
include::IncDoc.adoc[]
== ルートドキュメントの文末
ルートドキュメントの最後です
//@ICON_SAMPLE@
END
FOR /F "TOKENS=1,2,*" %%I IN ('REG QUERY "HKCU\Software\Dainippon Screen Mfg.Co.,Ltd.\ToolJsFuncScript\1.0" /v "InstallPath"') DO IF "%%I"=="InstallPath" SET VAL1=%%K
echo abc_%VAL1%
ifndef::_CONFIG_ADOC[]
// INCLUDE GUARD
:_CONFIG_ADOC: IncludeGuard
////
[コメント開始]
各種事前定義 ここでは最低限必要なものだけ定義、一覧説明をコメントブロックで記載しておく
定義が不要なら、//でコメントアウト、adoc毎に!(びっくりマーク)を追加すればよい
例. :sectnums!:
[コメント終了]
////
//-----------------------------------------------------------------------------------------------------
// 事前定義
:doctype: article
:toclevels: 3
:sectnums:
:sectnumlevels: 4
:sectlinks:
:icons: font
//[イメージのパスを指定]
:imagesdir: Images
// :lang: ja
ifeval::["{lang}" == "ja"]
:toc-title: 目次
:example-caption:
:caption:
//:example-caption: 例
:table-caption: 表
:figure-caption: 図
:preface-title: はじめに/まえがき
:appendix-caption: 付録
:caution-caption: 注意
:important-caption: 重要
:last-update-label: 最終更新
:listing-caption: リスト
:manname-title: 名前
:note-caption: 注記
:warning-caption: 警告
:tip-caption: ヒント
:untitled-label: 無題
:version-label: バージョン
endif::[]
ifeval::["{lang}" != "ja"]
:example-caption:
:caption:
endif::[]
// HTML出力で画像を埋め込む
:data-uri:
// 各種Macro拡張
:hardbreaks:
:experimental:
// Style拡張 [.XXXX]##hogehoge##で使用できる。{ExtendStyle}を表題の直前に記述する
// 属性の前に記載してはいけない。toc: leftなどが無効になる
// 拡張: [.nw]## <自動改行無効、複数空白文字OK> ## .nowrapでもOK。Tableの表幅調整に使用
:ExtendStyle: pass:none[ \
<style> \
.nw{display:inline-block;white-space:pre;} \
.nowrap{display:inline-block;white-space:pre;} \
</style>]
// obsolate
:NoWrap: pass:[<span style="display:inline-block;white-space:pre;">]
:Wrap: pass:[<span style="display:inline;white-space:pre;">]
:End: pass:[</span>]
// 改行 {br}
:br: pass:p[ +]
////
#### COMENT START #################
------------------------------------------------------------------
[ドキュメント毎に設定すべきもの]
:toc: left
:source-highlighter: coderay
:docname: = asciidoc
:author: my name
:revnumber: 0.9
:revdate: 2019/12/1
* 意味が不明なものは以下を参照
https://takumon.github.io/asciidoc-syntax-quick-reference-japanese-translation/
[属性定義]
:experimental: *各種マクロ拡張時に定義しておく
::module: *モジュール名
:Author: *著者名
:Email: *メールアドレス
:Date: *日付(2020/01/20)
:Revision: Rev.1 * リビジョン指定
:lang: ja * 言語指定
:doctype: book * 言語の種類(ja,...)
:description: * 説明???
:docname: ドキュメント名 * ドキュメント説明
[イメージのパスを指定]
:imagesdir: ./_images
[ソースハイライト]
:source-highlighter: coderay
[見出し設定]
:sectnums:
セクションに番号On, Offのときはコメントアウトもしくは"!""
[キャプチャーのラベル、不要なときは、空指定]
:chapter-label:
[目次作成]
:toc: left
目次 left,right,macro macroの場合は挿入箇所でtoc::[]を記述する
[目次のタイトル]
:toc-title:
[目次 階層レベル]
:toclevels: 3
[各ラベルの日本語設定]
:preface-title: はじめに/まえがき
:appendix-caption: 付録
:caution-caption: 注意
:example-caption: 例
:figure-caption: 図
:important-caption: 重要
:last-update-label: 最終更新
:listing-caption: リスト
:manname-title: 名前
:note-caption: 注記
:toc-title: 目次
:table-caption: 表
:warning-caption: 警告
:tip-caption: ヒント
:untitled-label: 無題
:version-label: バージョン
#### COMENT END #################
////
// End of ::_CONFIG_ADOC[]
endif::[]
font:
catalog:
# Noto Serif supports Latin, Latin-1 Supplement, Latin Extended-A, Greek, Cyrillic, Vietnamese & an assortment of symbols
Noto Serif:
normal: notoserif-regular-subset.ttf
bold: notoserif-bold-subset.ttf
italic: notoserif-italic-subset.ttf
bold_italic: notoserif-bold_italic-subset.ttf
# M+ 1mn supports ASCII and the circled numbers used for conums
M+ 1mn:
normal: mplus1mn-regular-ascii-conums.ttf
bold: mplus1mn-bold-ascii.ttf
italic: mplus1mn-italic-ascii.ttf
bold_italic: mplus1mn-bold_italic-ascii.ttf
# M+ 1p supports Latin, Latin-1 Supplement, Latin Extended, Greek, Cyrillic, Vietnamese, Japanese & an assortment of symbols
# It also provides arrows for ->, <-, => and <= replacements in case these glyphs are missing from font
M+ 1p Fallback:
normal: mplus1p-regular-fallback.ttf
bold: mplus1p-regular-fallback.ttf
italic: mplus1p-regular-fallback.ttf
bold_italic: mplus1p-regular-fallback.ttf
fallbacks:
- M+ 1p Fallback
page:
background_color: ffffff
layout: portrait
margin: [0.5in, 0.67in, 0.67in, 0.67in]
# margin_inner and margin_outer keys are used for recto/verso print margins when media=prepress
margin_inner: 0.75in
margin_outer: 0.59in
size: A4
base:
align: justify
# color as hex string (leading # is optional)
font_color: 333333
# color as RGB array
#font_color: [51, 51, 51]
# color as CMYK array (approximated)
#font_color: [0, 0, 0, 0.92]
#font_color: [0, 0, 0, 92%]
font_family: Noto Serif
# choose one of these font_size/line_height_length combinations
#font_size: 14
#line_height_length: 20
#font_size: 11.25
#line_height_length: 18
#font_size: 11.2
#line_height_length: 16
font_size: 10.5
#line_height_length: 15
# correct line height for Noto Serif metrics
line_height_length: 12
#font_size: 11.25
#line_height_length: 18
line_height: $base_line_height_length / $base_font_size
font_size_large: round($base_font_size * 1.25)
font_size_small: round($base_font_size * 0.85)
font_size_min: $base_font_size * 0.75
font_style: normal
border_color: eeeeee
border_radius: 4
border_width: 0.5
# FIXME vertical_rhythm is weird; we should think in terms of ems
#vertical_rhythm: $base_line_height_length * 2 / 3
# correct line height for Noto Serif metrics (comes with built-in line height)
vertical_rhythm: $base_line_height_length
horizontal_rhythm: $base_line_height_length
# QUESTION should vertical_spacing be block_spacing instead?
vertical_spacing: $vertical_rhythm
link:
font_color: 428bca
# literal is currently used for inline monospaced in prose and table cells
literal:
font_color: b12146
font_family: M+ 1mn
menu_caret_content: " <font size=\"1.15em\"><color rgb=\"b12146\">\u203a</color></font> "
heading:
align: left
#font_color: 181818
font_color: $base_font_color
font_family: $base_font_family
font_style: bold
# h1 is used for part titles (book doctype only)
h1_font_size: floor($base_font_size * 2.6)
# h2 is used for chapter titles (book doctype only)
h2_font_size: floor($base_font_size * 2.15)
h3_font_size: round($base_font_size * 1.7)
h4_font_size: $base_font_size_large
h5_font_size: $base_font_size
h6_font_size: $base_font_size_small
#line_height: 1.4
# correct line height for Noto Serif metrics (comes with built-in line height)
line_height: 1
margin_top: $vertical_rhythm * 0.4
margin_bottom: $vertical_rhythm * 0.9
title_page:
align: right
logo:
top: 10%
title:
top: 55%
font_size: $heading_h1_font_size
font_color: 999999
line_height: 0.9
subtitle:
font_size: $heading_h3_font_size
font_style: bold_italic
line_height: 1
authors:
margin_top: $base_font_size * 1.25
font_size: $base_font_size_large
font_color: 181818
revision:
margin_top: $base_font_size * 1.25
block:
margin_top: 0
margin_bottom: $vertical_rhythm
caption:
align: left
font_size: $base_font_size * 0.95
font_style: italic
# FIXME perhaps set line_height instead of / in addition to margins?
margin_inside: $vertical_rhythm / 3
#margin_inside: $vertical_rhythm / 4
margin_outside: 0
lead:
font_size: $base_font_size_large
line_height: 1.4
abstract:
font_color: 5c6266
font_size: $lead_font_size
line_height: $lead_line_height
font_style: italic
first_line_font_style: bold
title:
align: center
font_color: $heading_font_color
font_family: $heading_font_family
font_size: $heading_h4_font_size
font_style: $heading_font_style
admonition:
column_rule_color: $base_border_color
column_rule_width: $base_border_width
padding: [0, $horizontal_rhythm, 0, $horizontal_rhythm]
#icon:
# tip:
# name: fa-lightbulb-o
# stroke_color: 111111
# size: 24
label:
text_transform: uppercase
font_style: bold
blockquote:
font_color: $base_font_color
font_size: $base_font_size_large
border_color: $base_border_color
border_width: 5
# FIXME disable negative padding bottom once margin collapsing is implemented
padding: [0, $horizontal_rhythm, $block_margin_bottom * -0.75, $horizontal_rhythm + $blockquote_border_width / 2]
cite_font_size: $base_font_size_small
cite_font_color: 999999
# code is used for source blocks (perhaps change to source or listing?)
code:
font_color: $base_font_color
font_family: $literal_font_family
font_size: ceil($base_font_size)
padding: $code_font_size
line_height: 1.25
# line_gap is an experimental property to control how a background color is applied to an inline block element
line_gap: 3.8
background_color: f5f5f5
border_color: cccccc
border_radius: $base_border_radius
border_width: 0.75
conum:
font_family: M+ 1mn
font_color: $literal_font_color
font_size: $base_font_size
line_height: 4 / 3
example:
border_color: $base_border_color
border_radius: $base_border_radius
border_width: 0.75
background_color: ffffff
# FIXME reenable padding bottom once margin collapsing is implemented
padding: [$vertical_rhythm, $horizontal_rhythm, 0, $horizontal_rhythm]
image:
align: left
prose:
margin_top: $block_margin_top
margin_bottom: $block_margin_bottom
sidebar:
background_color: eeeeee
border_color: e1e1e1
border_radius: $base_border_radius
border_width: $base_border_width
# FIXME reenable padding bottom once margin collapsing is implemented
padding: [$vertical_rhythm, $vertical_rhythm * 1.25, 0, $vertical_rhythm * 1.25]
title:
align: center
font_color: $heading_font_color
font_family: $heading_font_family
font_size: $heading_h4_font_size
font_style: $heading_font_style
thematic_break:
border_color: $base_border_color
border_style: solid
border_width: $base_border_width
margin_top: $vertical_rhythm * 0.5
margin_bottom: $vertical_rhythm * 1.5
description_list:
term_font_style: bold
term_spacing: $vertical_rhythm / 4
description_indent: $horizontal_rhythm * 1.25
outline_list:
indent: $horizontal_rhythm * 1.5
#marker_font_color: 404040
# NOTE outline_list_item_spacing applies to list items that do not have complex content
item_spacing: $vertical_rhythm / 2
table:
background_color: $page_background_color
#head_background_color: <hex value>
#head_font_color: $base_font_color
head_font_style: bold
#body_background_color: <hex value>
body_stripe_background_color: f9f9f9
foot_background_color: f0f0f0
border_color: dddddd
border_width: $base_border_width
cell_padding: 3
toc:
indent: $horizontal_rhythm
line_height: 1.4
dot_leader:
#content: ". "
font_color: a9a9a9
#levels: 2 3
# NOTE in addition to footer, header is also supported
footer:
font_size: $base_font_size_small
# NOTE if background_color is set, background and border will span width of page
border_color: dddddd
border_width: 0.25
height: $base_line_height_length * 2.5
line_height: 1
padding: [$base_line_height_length / 2, 1, 0, 1]
vertical_align: top
#image_vertical_align: <alignment> or <number>
# additional attributes for content:
# * {page-count}
# * {page-number}
# * {document-title}
# * {document-subtitle}
# * {chapter-title}
# * {section-title}
# * {section-or-chapter-title}
recto:
#columns: "<50% =0% >50%"
right:
content: '{page-number}'
#content: '{section-or-chapter-title} | {page-number}'
#content: '{document-title} | {page-number}'
#center:
# content: '{page-number}'
verso:
#columns: $footer_recto_columns
left:
content: $footer_recto_right_content
#content: '{page-number} | {chapter-title}'
#center:
# content: '{page-number}'
font:
catalog:
# Noto Serif supports Latin, Latin-1 Supplement, Latin Extended-A, Greek, Cyrillic, Vietnamese & an assortment of symbols
Noto Serif:
normal: notoserif-regular-subset.ttf
bold: notoserif-bold-subset.ttf
italic: notoserif-italic-subset.ttf
bold_italic: notoserif-bold_italic-subset.ttf
# M+ 1mn supports ASCII and the circled numbers used for conums
M+ 1mn:
normal: mplus1mn-regular-ascii-conums.ttf
bold: mplus1mn-bold-ascii.ttf
italic: mplus1mn-italic-ascii.ttf
bold_italic: mplus1mn-bold_italic-ascii.ttf
# M+ 1p supports Latin, Latin-1 Supplement, Latin Extended, Greek, Cyrillic, Vietnamese, Japanese & an assortment of symbols
# It also provides arrows for ->, <-, => and <= replacements in case these glyphs are missing from font
M+ 1p Fallback:
normal: mplus1p-regular-fallback.ttf
bold: mplus1p-regular-fallback.ttf
italic: mplus1p-regular-fallback.ttf
bold_italic: mplus1p-regular-fallback.ttf
fallbacks:
- M+ 1p Fallback
page:
background_color: ffffff
layout: portrait
margin: [0.5in, 0.67in, 0.67in, 0.67in]
# margin_inner and margin_outer keys are used for recto/verso print margins when media=prepress
margin_inner: 0.75in
margin_outer: 0.59in
size: A4
base:
align: justify
# color as hex string (leading # is optional)
font_color: 333333
# color as RGB array
#font_color: [51, 51, 51]
# color as CMYK array (approximated)
#font_color: [0, 0, 0, 0.92]
#font_color: [0, 0, 0, 92%]
font_family: Noto Serif
# choose one of these font_size/line_height_length combinations
#font_size: 14
#line_height_length: 20
#font_size: 11.25
#line_height_length: 18
#font_size: 11.2
#line_height_length: 16
font_size: 10.5
#line_height_length: 15
# correct line height for Noto Serif metrics
line_height_length: 12
#font_size: 11.25
#line_height_length: 18
line_height: $base_line_height_length / $base_font_size
font_size_large: round($base_font_size * 1.25)
font_size_small: round($base_font_size * 0.85)
font_size_min: $base_font_size * 0.75
font_style: normal
border_color: eeeeee
border_radius: 4
border_width: 0.5
# FIXME vertical_rhythm is weird; we should think in terms of ems
#vertical_rhythm: $base_line_height_length * 2 / 3
# correct line height for Noto Serif metrics (comes with built-in line height)
vertical_rhythm: $base_line_height_length
horizontal_rhythm: $base_line_height_length
# QUESTION should vertical_spacing be block_spacing instead?
vertical_spacing: $vertical_rhythm
link:
font_color: 428bca
# literal is currently used for inline monospaced in prose and table cells
literal:
font_color: b12146
font_family: M+ 1mn
menu_caret_content: " <font size=\"1.15em\"><color rgb=\"b12146\">\u203a</color></font> "
heading:
align: left
#font_color: 181818
font_color: $base_font_color
font_family: $base_font_family
font_style: bold
# h1 is used for part titles (book doctype only)
h1_font_size: floor($base_font_size * 2.6)
# h2 is used for chapter titles (book doctype only)
h2_font_size: floor($base_font_size * 2.15)
h3_font_size: round($base_font_size * 1.7)
h4_font_size: $base_font_size_large
h5_font_size: $base_font_size
h6_font_size: $base_font_size_small
#line_height: 1.4
# correct line height for Noto Serif metrics (comes with built-in line height)
line_height: 1
margin_top: $vertical_rhythm * 0.4
margin_bottom: $vertical_rhythm * 0.9
# Add K.Matsuo
chapter:
break_before: auto
break_after: auto
part:
break_before: auto
break_after: auto
title_page:
align: right
logo:
top: 10%
title:
top: 55%
font_size: $heading_h1_font_size
font_color: 999999
line_height: 0.9
subtitle:
font_size: $heading_h3_font_size
font_style: bold_italic
line_height: 1
authors:
margin_top: $base_font_size * 1.25
font_size: $base_font_size_large
font_color: 181818
revision:
margin_top: $base_font_size * 1.25
block:
margin_top: 0
margin_bottom: $vertical_rhythm
caption:
align: left
font_size: $base_font_size * 0.95
font_style: italic
# FIXME perhaps set line_height instead of / in addition to margins?
margin_inside: $vertical_rhythm / 3
#margin_inside: $vertical_rhythm / 4
margin_outside: 0
lead:
font_size: $base_font_size_large
line_height: 1.4
abstract:
font_color: 5c6266
font_size: $lead_font_size
line_height: $lead_line_height
font_style: italic
first_line_font_style: bold
title:
align: center
font_color: $heading_font_color
font_family: $heading_font_family
font_size: $heading_h4_font_size
font_style: $heading_font_style
admonition:
column_rule_color: $base_border_color
column_rule_width: $base_border_width
padding: [0, $horizontal_rhythm, 0, $horizontal_rhythm]
#icon:
# tip:
# name: fa-lightbulb-o
# stroke_color: 111111
# size: 24
label:
text_transform: uppercase
font_style: bold
blockquote:
font_color: $base_font_color
font_size: $base_font_size_large
border_color: $base_border_color
border_width: 5
# FIXME disable negative padding bottom once margin collapsing is implemented
padding: [0, $horizontal_rhythm, $block_margin_bottom * -0.75, $horizontal_rhythm + $blockquote_border_width / 2]
cite_font_size: $base_font_size_small
cite_font_color: 999999
# code is used for source blocks (perhaps change to source or listing?)
code:
font_color: $base_font_color
font_family: $literal_font_family
font_size: ceil($base_font_size)
padding: $code_font_size
line_height: 1.25
# line_gap is an experimental property to control how a background color is applied to an inline block element
line_gap: 3.8
background_color: f5f5f5
border_color: cccccc
border_radius: $base_border_radius
border_width: 0.75
conum:
font_family: M+ 1mn
font_color: $literal_font_color
font_size: $base_font_size
line_height: 4 / 3
example:
border_color: $base_border_color
border_radius: $base_border_radius
border_width: 0.75
background_color: ffffff
# FIXME reenable padding bottom once margin collapsing is implemented
padding: [$vertical_rhythm, $horizontal_rhythm, 0, $horizontal_rhythm]
image:
align: left
prose:
margin_top: $block_margin_top
margin_bottom: $block_margin_bottom
sidebar:
background_color: eeeeee
border_color: e1e1e1
border_radius: $base_border_radius
border_width: $base_border_width
# FIXME reenable padding bottom once margin collapsing is implemented
padding: [$vertical_rhythm, $vertical_rhythm * 1.25, 0, $vertical_rhythm * 1.25]
title:
align: center
font_color: $heading_font_color
font_family: $heading_font_family
font_size: $heading_h4_font_size
font_style: $heading_font_style
thematic_break:
border_color: $base_border_color
border_style: solid
border_width: $base_border_width
margin_top: $vertical_rhythm * 0.5
margin_bottom: $vertical_rhythm * 1.5
description_list:
term_font_style: bold
term_spacing: $vertical_rhythm / 4
description_indent: $horizontal_rhythm * 1.25
outline_list:
indent: $horizontal_rhythm * 1.5
#marker_font_color: 404040
# NOTE outline_list_item_spacing applies to list items that do not have complex content
item_spacing: $vertical_rhythm / 2
table:
background_color: $page_background_color
#head_background_color: <hex value>
#head_font_color: $base_font_color
head_font_style: bold
#body_background_color: <hex value>
body_stripe_background_color: f9f9f9
foot_background_color: f0f0f0
border_color: dddddd
border_width: $base_border_width
cell_padding: 3
toc:
indent: $horizontal_rhythm
line_height: 1.4
dot_leader:
#content: ". "
font_color: a9a9a9
#levels: 2 3
# NOTE in addition to footer, header is also supported
footer:
font_size: $base_font_size_small
# NOTE if background_color is set, background and border will span width of page
border_color: dddddd
border_width: 0.25
# 2行表示するなら、高さを大きくすること,line_heightは2にしても広がらなかった
height: $base_line_height_length * 3.5
line_height: 1
padding: [$base_line_height_length / 2, 1, 0, 1]
vertical_align: top
#image_vertical_align: <alignment> or <number>
# additional attributes for content:
# * {page-count}
# * {page-number}
# * {document-title}
# * {document-subtitle}
# * {chapter-title}
# * {section-title}
# * {section-or-chapter-title}
recto:
#columns: "<50% =0% >50%"
#right:
# 2行表示する | 始まりで+のasciidoc表現がそのまま使えるみたい ガイド参照
center:
content: |
{page-number} / {page-count} +
Copyright &#169; hogehoge company CO.,LTD. All right reserved.
#content: '{page-number}'
#content: '{section-or-chapter-title} | {page-number}'
#content: '{document-title} | {page-number}'
#center:
# content: '{page-number}'
verso:
#columns: $footer_recto_columns
#left:
center:
content: $footer_recto_center_content
#content: '{page-number} | {chapter-title}'
#center:
# content: '{page-number}'
:lang: ja
include::config.adoc[]
// custom css.
//:stylesdir: ./
//:stylesheet: edit.css
//:toc: left
//:imagesdir: Images
//@ICON_CUSTOM@
{ExtendStyle}
// After need empty-one-line
//@SCREEN_LOGOS@
= @FILENAME@
[.text-right]
--
@DATE@
--
// tag::sub[]
== Summary
最初の文書です。
* [x] チェックボックス [*] or [ ]
//@ICON_SAMPLE@
== Detail
ほげ
以上
// end::sub[]
:lang: ja
:docname: @FILENAME@
:conf: {docname}.adoc
include::{conf}[tag="CONFIG"}]
//:toc: left
//@ICON_CUSTOM@
{ExtendStyle}
// After need empty-one-line
//@SCREEN_LOGOS@
= @FILENAME@
[.text-right]
--
@DATE@
--
// tag::sub[]
== Summary
最初の文書です。
//@ICON_SAMPLE@
== Detail
// end::sub[]
// END
//////////////////////////////////////////////////////////////
// tag::CONFIG[] ↓↓ここからメイン文書に差し込み
:hardbreaks:
:imagesdir: Images
:doctype: article
:toclevels: 3
:sectnums:
:sectnumlevels: 4
:sectlinks:
:icons: font
:data-uri:
:experimental:
ifeval::["{lang}" == "ja"]
:toc-title: 目次
:example-caption:
:caption:
:table-caption: 表
:figure-caption: 図
:preface-title: はじめに/まえがき
:appendix-caption: 付録
:caution-caption: 注意
:important-caption: 重要
:last-update-label: 最終更新
:listing-caption: リスト
:manname-title: 名前
:note-caption: 注記
:warning-caption: 警告
:tip-caption: ヒント
:untitled-label: 無題
:version-label: バージョン
endif::[]
ifeval::["{lang}" != "ja"]
:example-caption:
:caption:
endif::[]
// Macro
:experimental:
:ExtendStyle: pass:none[ \
<style> \
.nw{display:inline-block;white-space:pre;} \
.nowrap{display:inline-block;white-space:pre;} \
</style>]
// obsolate
:NoWrap: pass:[<span style="display:inline-block;white-space:pre;">]
:Wrap: pass:[<span style="display:inline;white-space:pre;">]
:End: pass:[</span>]
:br: pass:p[ +]
// end::CONFIG[] ↑↑ここまでメイン文書に差し込み
//////////////////////////////////////////////////////////////
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment