Confluence 4.2 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
This page gives an example of a user macro, the 'NoPrint' macro, that you can use to prevent text from being printed. (For full details about creating a user macro, see the guide to writing user macros.)
The information on this page does not apply to
[Unable to render {include} The included page could not be found. ({include} をレンダリングできません。ページが見つかりませんでした)] を選択し、
.
Defining the 'NoPrint' User Macro
To create the 'NoPrint' user macro:
- Go to the 'Confluence Administration Console' and click User Macros in the left-hand panel.
- Click Create a User Macro at the top of the list of macros.
- Enter the macro attributes as follows:
- Macro Name:
noprint - Visibility:
Visible to all users in the Macro Browser - Macro Title:
NoPrint - Description:
Hides text from printed output. - Categories:
Confluence Content - Icon URL: You can leave this field empty.
- Documentation URL: You can leave this field empty.
- Macro Body Processing:
Rendered Template:
## @noparams <div class="noprint">$body</div>
- Macro Name:
- [追加] をクリックします。
Using the 'NoPrint' Macro on a Page
Now you can add the macro to your Confluence page using the Macro Browser. Text entered into the body of the macro placeholder will not be printed.
Making PDF Export Recognise the NoPrint Macro
See Advanced PDF Export Customisations#noprint.
関連トピック
概要
コンテンツ ツール
アプリ

