Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ADoc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QCD
ADoc
Commits
f383e673
Commit
f383e673
authored
May 07, 2021
by
AP matsuo koji
😲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改行:自動改行の抑制方法を変更 [.nw]##...##
parent
c74860ee
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
18 deletions
+40
-18
Adoc使用説明簡易.adoc
_Publish/2_記述方法/Adoc使用説明簡易.adoc
+23
-16
Adoc使用説明簡易.html
_Publish/2_記述方法/Adoc使用説明簡易.html
+0
-0
config.adoc
_Publish/2_記述方法/config.adoc
+17
-2
No files found.
_Publish/2_記述方法/Adoc使用説明簡易.adoc
View file @
f383e673
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
// ++++
// ++++
include::config.adoc[]
include::config.adoc[]
:toc: left
:toc: left
// adoc-pdf -aで@指定をすればImagesdirはここが優先される
// adoc-pdf -aで@指定をすればImagesdirはここが優先される
...
@@ -17,7 +16,7 @@ include::config.adoc[]
...
@@ -17,7 +16,7 @@ include::config.adoc[]
// :lang: ja
// :lang: ja
// :doctype: bookDir
// :doctype: bookDir
// :toc-title:
目次
// :toc-title:
// :toclevels: 3
// :toclevels: 3
// :sectnums:
// :sectnums:
// :sectnumlevels: 4
// :sectnumlevels: 4
...
@@ -32,18 +31,12 @@ include::config.adoc[]
...
@@ -32,18 +31,12 @@ include::config.adoc[]
// 以下でマクロが有効になる
// 以下でマクロが有効になる
:experimental:
:experimental:
{ExtendStyle}
= Adoc使用説明書簡易 (Asciidocの表現を試す)
= Adoc使用説明書簡易 (Asciidocの表現を試す)
[%hardbreaks]
[%hardbreaks]
:dollar: $
:ddollar: $$
//
// [underlinex]## xxxxx アンダー xxxxx ##
// stylesdir = {stylesdir}
// stylesdir = {stylesdir}
// stylesheet = {stylesheet}
// stylesheet = {stylesheet}
...
@@ -473,19 +466,33 @@ $$====$$
...
@@ -473,19 +466,33 @@ $$====$$
|
|
``---``
``---``
|===
|===
// ===============================
// ===============================
== 改行 ==
== 改行
[%hardbreaks]
[%hardbreaks]
* ``␣+``で繋ぐ。
* ``␣+``で繋ぐ。
* もしくは``[%hardbreaks]``で段落全体で改行を有効にする(段落毎にリセットされる)。ドキュメント全体で設定するなら``:hardbreaks:``属性をつけるとよい。個別の解除は`` \{set:hardbreaks!} ``。
* もしくは``[%hardbreaks]``で段落全体で改行を有効にする(段落毎にリセットされる)。
* [red]#New!# $${NoWrap}$$... hoge hoge ...$${End}$$で自動改行を抑制 +
ドキュメント全体で設定するなら``:hardbreaks:``属性をつけるとよい。個別の解除は\{set:hardbreaks\!}。
config.adocで以下を事前定義してカスタマイズしている。+
表のセル幅が狭く改行される場合に、ヘッダ行に指定することでヘッダ行の幅でセル幅を抑制できる。(結構有効)。
* [red]#New!# ``$$[.nw]##... hoge hoge ...##$$``で自動改行を抑制かつ複数空白記述可能。別名:``.nowarp``
表のセル幅が狭く、改行される場合に、ヘッダ行に指定することでヘッダ行の幅でセル幅を抑制できる。(結構有効)。
[IMPORTANT]
====
[%hardbreaks]
config.adocのインクルード後、属性設定の後、表題の直前に``{ExtendStyle}``を記述すること。
``toc: left``の前に定義すると目次が表示されなくなります。
====
* [red]#Obsolete!# ``$${NoWrap}$$... hoge hoge ...$${End}$$``で自動改行を抑制 ##前記のものがあるのでもう使わないこと## +
表のセル幅が狭く改行される場合に、ヘッダ行に指定することでヘッダ行の幅でセル幅を抑制できる。
+
+
----
----
// Macro
// Macro
:NoWrap: pass:[<span style="display:inline-block;white-space:
nowrap
;">]
:NoWrap: pass:[<span style="display:inline-block;white-space:
pre
;">]
:Wrap: pass:[<span style="display:inline;white-space:
wrap
;">]
:Wrap: pass:[<span style="display:inline;white-space:
pre
;">]
:End: pass:[</span>]
:End: pass:[</span>]
----
----
...
...
_Publish/2_記述方法/Adoc使用説明簡易.html
View file @
f383e673
This source diff could not be displayed because it is too large. You can
view the blob
instead.
_Publish/2_記述方法/config.adoc
View file @
f383e673
...
@@ -53,11 +53,26 @@ endif::[]
...
@@ -53,11 +53,26 @@ endif::[]
// HTML出力で画像を埋め込む
// HTML出力で画像を埋め込む
:data-uri:
:data-uri:
// 各種Macro拡張
// 各種Macro拡張
:hardbreaks:
:experimental:
:experimental:
// Macro {NoWrap}...hoge hoge...{End} で自動改行しない
// 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;">]
:NoWrap: pass:[<span style="display:inline-block;white-space:pre;">]
:Wrap: pass:[<span style="display:inline;white-space:
wrap
;">]
:Wrap: pass:[<span style="display:inline;white-space:
pre
;">]
:End: pass:[</span>]
:End: pass:[</span>]
// 改行 {br}
:br: pass:p[ +]
////
////
#### COMENT START #################
#### COMENT START #################
------------------------------------------------------------------
------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment