5. Sample

5.1. Question 0

  • Numbered Reference

For code:

See Code Block 5.1.1 for an example.

For figure:

This is Figure 5.1.1.

Note

figure numref doesn’t work for PDF.

  • Clickable Reference

Click it this figure


xxx

Figure 5.1.1 book cover

The legend consists of all elements after the caption. In this case, the legend consists of this paragraph and the following table.

To cross-refer an image, you need to use figure, which is an image with caption. The caption is required!


Code Block 5.1.1 this.py
print('Explicit is better than implicit.')

5.2. Question 1

abc

5.3. Question 2

efg

5.4. Question 3

this is a follow up of Question 0.

This is Section 3.1.4.1. This is Section 3.13.4.

../_images/vec2.png

Figure 5.4.1 A picture of a gull.

This text includes a smiley face 😄 and a snake too! 🐍

Don’t you love it? 😍

Table 5.4.1 Supported emoji codes

Emoji

Code

👍

:+1:

👎

:-1:

💯

:100:

🔢

:1234:

🎱

:8ball:

🆎

:ab:

🧮

:abacus:

🔤

:abc:

🔡

:abcd:

🉑

:accept:

🪗

:accordion:

🧑

:adult:

:alarm_clock:

👽

:alien:

🚑

:ambulance:

🏺

:amphora:

:anchor:

👼

:angel:

💢

:anger:

😠

:angry:

😧

:anguished:

🐜

:ant:

🍎

:apple:

:aquarius:

🏹

:archery:

:aries:

🎨

:art:

😲

:astonished:

🏧

:atm:

🥑

:avocado:

🪓

:axe:

👶

:baby:

🍼

:baby_bottle:

🐤

:baby_chick:

🚼

:baby_symbol:

🔙

:back:

🤚

:back_of_hand:

🥓

:bacon:

🦡

:badger:

🏸

:badminton:

🥯

:bagel:

🦲

:bald:

🩰

:ballet_shoes:

🎈

:balloon:

🎍

:bamboo:

🍌

:banana:

🪕

:banjo:

🏦

:bank:

📊

:bar_chart:

💈

:barber:

:baseball:

🧺

:basket:

🏀

:basketball:

🦇

:bat:

🛀

:bath:

🛁

:bathtub:

🔋

:battery:

🐻

:bear:

🦫

:beaver:

🐝

:bee:

🍺

:beer:

🍻

:beers:

🪲

:beetle:

🔰

:beginner:

🔔

:bell:

🫑

:bell_pepper:

🍱

:bento:

🧃

:beverage_box:

🚴

:bicyclist:

🚲

:bike:

🚴

:biking_man:

👙

:bikini:

🧢

:billed_cap:

🐦

:bird:

🎂

:birthday:

🦬

:bison:

:black_circle:

🏴

:black_flag:

🖤

:black_heart:

🃏

:black_joker:

👱

:blonde_man:

🌼

:blossom:

🐡

:blowfish:

📘

:blue_book:

🚙

:blue_car:

🔵

:blue_circle:

💙

:blue_heart:

🟦

:blue_square:

🫐

:blueberries:

😊

:blush:

🐗

:boar:

💣

:bomb:

🦴

:bone:

📖

:book:

🔖

:bookmark:

📚

:books:

💥

:boom:

🪃

:boomerang:

👢

:boot:

💐

:bouquet:

🙇

:bow:

🙇

:bowing_man:

🎳

:bowling:

🥊

:boxing_glove:

👦

:boy:

🧠

:brain:

🍞

:bread:

🧱

:bricks:

💼

:briefcase:

🩲

:briefs:

🥦

:broccoli:

💔

:broken_heart:

🧹

:broom:

🟤

:brown_circle:

🤎

:brown_heart:

🟫

:brown_square:

🧋

:bubble_tea:

🪣

:bucket:

🐛

:bug:

💡

:bulb:

🌯

:burrito:

🚌

:bus:

🚏

:busstop:

🧈

:butter:

🦋

:butterfly:

🌵

:cactus:

🍰

:cake:

📆

:calendar:

🤙

:call_me:

🤙

:call_me_hand:

📲

:calling:

🐫

:camel:

📷

:camera:

📸

:camera_flash:

:cancer:

🍬

:candy:

🥫

:canned_food:

🛶

:canoe:

🔠

:capital_abcd:

:capricorn:

🚗

:car:

📇

:card_index:

🥕

:carrot:

🤸

:cartwheel:

🐈

:cat2:

🐱

:cat:

💿

:cd:

🪑

:chair:

🍾

:champagne:

💹

:chart:

🧀

:cheese:

🧀

:cheese_wedge:

🍒

:cherries:

🌰

:chestnut:

🐔

:chicken:

🧒

:child:

🥢

:chopsticks:

:church:

🎦

:cinema:

🎪

:circus_tent:

🌆

:city_dusk:

🌇

:city_sunrise:

🌇

:city_sunset:

🆑

:cl:

🗜

:clamp:

👏

:clap:

🎬

:clapper:

📋

:clipboard:

🕥

:clock1030:

🕙

:clock10:

🕦

:clock1130:

🕚

:clock11:

🕧

:clock1230:

🕛

:clock12:

🕜

:clock130:

🕐

:clock1:

🕝

:clock230:

🕑

:clock2:

🕞

:clock330:

🕒

:clock3:

🕟

:clock430:

🕓

:clock4:

🕠

:clock530:

🕔

:clock5:

🕡

:clock630:

🕕

:clock6:

🕢

:clock730:

🕖

:clock7:

🕣

:clock830:

🕗

:clock8:

🕤

:clock930:

🕘

:clock9:

📕

:closed_book:

🤡

:clown:

🤡

:clown_face:

🧥

:coat:

🪳

:cockroach:

🍸

:cocktail:

🥥

:coconut:

:coffee:

🪙

:coin:

🥶

:cold_face:

😰

:cold_sweat:

🧭

:compass:

💻

:computer:

😖

:confounded:

😕

:confused:

🚧

:construction:

🍪

:cookie:

🍳

:cooking:

🆒

:cool:

👮

:cop:

🌽

:corn:

👫

:couple:

💏

:couplekiss:

🐄

:cow2:

🐮

:cow:

🤠

:cowboy:

🦀

:crab:

💳

:credit_card:

🦗

:cricket:

🏏

:cricket_game:

🐊

:crocodile:

🥐

:croissant:

👑

:crown:

😢

:cry:

🔮

:crystal_ball:

🥒

:cucumber:

🧁

:cupcake:

💘

:cupid:

🦱

:curly_haired:

:curly_loop:

🍛

:curry:

🍮

:custard:

🛃

:customs:

🥩

:cut_of_meat:

🌀

:cyclone:

💃

:dancer:

👯

:dancers:

🍡

:dango:

🎯

:dart:

💨

:dash:

📅

:date:

🧏

:deaf_person:

🦌

:deer:

🕵

:detective:

😞

:disappointed:

🤿

:diving_mask:

🪔

:diya_lamp:

💫

:dizzy:

😵

:dizzy_face:

🧬

:dna:

🦤

:dodo:

🐕

:dog2:

🐶

:dog:

💵

:dollar:

🎎

:dolls:

🐬

:dolphin:

🚪

:door:

🍩

:doughnut:

🐉

:dragon:

🐲

:dragon_face:

👗

:dress:

🤤

:drool:

💧

:droplet:

🥁

:drum:

🦆

:duck:

🥟

:dumpling:

📀

:dvd:

📧

:e-mail:

🦅

:eagle:

👂

:ear:

🌾

:ear_of_rice:

🌍

:earth_africa:

🌏

:earth_asia:

🥚

:egg:

🍆

:eggplant:

🐘

:elephant:

🛗

:elevator:

🧝

:elf:

📧

:email:

🔚

:end:

💶

:euro:

:exclamation:

👓

:eyeglasses:

👀

:eyes:

🤦

:face_palm:

🤦

:facepalm:

🏭

:factory:

🧚

:fairy:

🧆

:falafel:

🍂

:fallen_leaf:

👪

:family:

:fast_forward:

📠

:fax:

😨

:fearful:

🪶

:feather:

🐾

:feet:

🤺

:fencer:

🤺

:fencing:

🎡

:ferris_wheel:

🏑

:field_hockey:

📁

:file_folder:

🎞

:film_strip:

🔥

:fire:

🚒

:fire_engine:

🧨

:firecracker:

🎆

:fireworks:

🥇

:first_place:

🐟

:fish:

🍥

:fish_cake:

:fist:

🤛

:fist_left:

:fist_raised:

🤜

:fist_right:

🏴

:flag_black:

🎏

:flags:

🔥

:flame:

🦩

:flamingo:

🍮

:flan:

🔦

:flashlight:

🫓

:flatbread:

💾

:floppy_disk:

😳

:flushed:

🪰

:fly:

🥏

:flying_disc:

🌁

:foggy:

🫕

:fondue:

🦶

:foot:

🏈

:football:

👣

:footprints:

:fountain:

🖋

:fountain_pen:

🦊

:fox:

🦊

:fox_face:

🆓

:free:

🥖

:french_bread:

🍳

:fried_egg:

🍤

:fried_shrimp:

🍟

:fries:

🐸

:frog:

😦

:frowning:

:fuelpump:

🌕

:full_moon:

🎲

:game_die:

🧄

:garlic:

💎

:gem:

:gemini:

🧞

:genie:

👻

:ghost:

🎁

:gift:

💝

:gift_heart:

🦒

:giraffe:

👧

:girl:

🧤

:gloves:

🥅

:goal:

🥅

:goal_net:

🐐

:goat:

🥽

:goggles:

:golf:

🏌

:golfer:

🦍

:gorilla:

👵

:grandma:

🍇

:grapes:

🍏

:green_apple:

📗

:green_book:

🟢

:green_circle:

💚

:green_heart:

🥗

:green_salad:

🟩

:green_square:

😬

:grimacing:

😁

:grin:

😀

:grinning:

💂

:guard:

💂

:guardsman:

🦮

:guide_dog:

🎸

:guitar:

🔫

:gun:

💇

:haircut:

🍔

:hamburger:

🔨

:hammer:

🐹

:hamster:

:hand:

🖐

:hand_splayed:

👜

:handbag:

🤾

:handball:

🤝

:handshake:

💩

:hankey:

🤕

:head_bandage:

🎧

:headphones:

🪦

:headstone:

🙉

:hear_no_evil:

😍

:heart_eyes:

💓

:heartbeat:

💗

:heartpulse:

🦔

:hedgehog:

🚁

:helicopter:

🌿

:herb:

🌺

:hibiscus:

👠

:high_heel:

🥾

:hiking_boot:

🛕

:hindu_temple:

🦛

:hippopotamus:

🔪

:hocho:

🏒

:hockey:

🍯

:honey_pot:

🪝

:hook:

🐴

:horse:

🏇

:horse_racing:

🏥

:hospital:

🌭

:hot_dog:

🥵

:hot_face:

🌭

:hotdog:

🏨

:hotel:

:hourglass:

🏠

:house:

🏘

:houses:

🤗

:hugging:

🤗

:hugging_face:

🤗

:hugs:

😯

:hushed:

🛖

:hut:

🍨

:ice_cream:

🧊

:ice_cube:

🏒

:ice_hockey:

🍦

:icecream:

🆔

:id:

👿

:imp:

📥

:inbox_tray:

😇

:innocent:

📱

:iphone:

🗾

:japan:

👖

:jeans:

🧩

:jigsaw:

😂

:joy:

😹

:joy_cat:

🤹

:juggler:

🤹

:juggling:

🕋

:kaaba:

🦘

:kangaroo:

🛶

:kayak:

🔑

:key:

🔟

:keycap_ten:

🛴

:kick_scooter:

👘

:kimono:

💋

:kiss:

😗

:kissing:

😽

:kissing_cat:

🪁

:kite:

🥝

:kiwi:

🥝

:kiwi_fruit:

🥝

:kiwifruit:

🔪

:knife:

🪢

:knot:

🐨

:koala:

🈁

:koko:

🥼

:lab_coat:

🥍

:lacrosse:

🪜

:ladder:

🐞

:lady_beetle:

😆

:laughing:

🥬

:leafy_green:

🍃

:leaves:

📒

:ledger:

🤛

:left_fist:

🛅

:left_luggage:

🦵

:leg:

🍋

:lemon:

:leo:

🐆

:leopard:

🤥

:liar:

:libra:

🏋

:lifter:

🚈

:light_rail:

🔗

:link:

🦁

:lion:

🦁

:lion_face:

👄

:lips:

💄

:lipstick:

🦎

:lizard:

🦙

:llama:

🦞

:lobster:

🔒

:lock:

🍭

:lollipop:

🪘

:long_drum:

:loop:

🔊

:loud_sound:

📢

:loudspeaker:

🏩

:love_hotel:

💌

:love_letter:

🧳

:luggage:

🫁

:lungs:

🤥

:lying_face:

🔍

:mag:

🔎

:mag_right:

🧙

:mage:

🪄

:magic_wand:

🧲

:magnet:

🀄

:mahjong:

📫

:mailbox:

🕺

:male_dancer:

🦣

:mammoth:

👨

:man:

🕺

:man_dancing:

🥭

:mango:

👞

:mans_shoe:

🍁

:maple_leaf:

😷

:mask:

💆

:massage:

🧉

:mate:

🍖

:meat_on_bone:

🏅

:medal:

🏅

:medal_sports:

📣

:mega:

🍈

:melon:

📝

:memo:

🕎

:menorah:

🚹

:mens:

🧜

:merperson:

🤘

:metal:

🚇

:metro:

🦠

:microbe:

🎤

:microphone:

🔬

:microscope:

🥛

:milk:

🥛

:milk_glass:

🌌

:milky_way:

🚐

:minibus:

💽

:minidisc:

🪞

:mirror:

📱

:mobile_phone:

🤑

:money_mouth:

💰

:moneybag:

🐒

:monkey:

🐵

:monkey_face:

🚝

:monorail:

🌔

:moon:

🥮

:moon_cake:

🎓

:mortar_board:

🕌

:mosque:

🦟

:mosquito:

🛥

:motor_boat:

🛵

:motorbike:

🗻

:mount_fuji:

🐁

:mouse2:

🐭

:mouse:

🪤

:mouse_trap:

🎥

:movie_camera:

🗿

:moyai:

🤶

:mrs_claus:

💪

:muscle:

🍄

:mushroom:

🎵

:musical_note:

🔇

:mute:

💅

:nail_care:

📛

:name_badge:

🧿

:nazar_amulet:

👔

:necktie:

🤓

:nerd:

🤓

:nerd_face:

😐

:neutral_face:

🆕

:new:

🌑

:new_moon:

📰

:newspaper:

🆖

:ng:

🥷

:ninja:

🔕

:no_bell:

🚳

:no_bicycles:

:no_entry:

🙅

:no_good:

😶

:no_mouth:

🚭

:no_smoking:

👃

:nose:

📓

:notebook:

🎶

:notes:

🔩

:nut_and_bolt:

:o:

🌊

:ocean:

🐙

:octopus:

🍢

:oden:

🏢

:office:

🆗

:ok:

👌

:ok_hand:

🙆

:ok_woman:

🧓

:older_adult:

👴

:older_man:

👵

:older_woman:

🫒

:olive:

🔛

:on:

🚍

:oncoming_bus:

🧅

:onion:

👐

:open_hands:

😮

:open_mouth:

:ophiuchus:

📙

:orange_book:

🧡

:orange_heart:

🦧

:orangutan:

🦦

:otter:

📤

:outbox_tray:

🦉

:owl:

🐂

:ox:

🦪

:oyster:

📦

:package:

🥘

:paella:

📟

:pager:

🌴

:palm_tree:

🥞

:pancakes:

🐼

:panda_face:

📎

:paperclip:

🪂

:parachute:

🦜

:parrot:

:partly_sunny:

🐾

:paw_prints:

🍑

:peach:

🦚

:peacock:

🥜

:peanuts:

🍐

:pear:

🖊

:pen:

📝

:pencil:

🐧

:penguin:

😔

:pensive:

😣

:persevere:

🧫

:petri_dish:

🛻

:pickup_truck:

🥧

:pie:

🐖

:pig2:

🐷

:pig:

🐽

:pig_nose:

💊

:pill:

🍍

:pineapple:

🏓

:ping_pong:

:pisces:

🍕

:pizza:

🪅

:piñata:

🪧

:placard:

🪠

:plunger:

👇

:point_down:

👈

:point_left:

👉

:point_right:

👆

:point_up_2:

🚓

:police_car:

👮

:policeman:

💩

:poo:

🐩

:poodle:

💩

:poop:

🍿

:popcorn:

🏣

:post_office:

📯

:postal_horn:

📮

:postbox:

🥔

:potato:

🪴

:potted_plant:

👝

:pouch:

🍗

:poultry_leg:

💷

:pound:

😾

:pouting_cat:

🙏

:pray:

📿

:prayer_beads:

🥨

:pretzel:

🤴

:prince:

👸

:princess:

🦯

:probing_cane:

🍮

:pudding:

👊

:punch:

💜

:purple_heart:

👛

:purse:

📌

:pushpin:

:question:

🐇

:rabbit2:

🐰

:rabbit:

🦝

:raccoon:

🐎

:racehorse:

📻

:radio:

🔘

:radio_button:

😡

:rage:

🚃

:railway_car:

🌈

:rainbow:

:raised_hand:

🙌

:raised_hands:

🙋

:raising_hand:

🐏

:ram:

🍜

:ramen:

🐀

:rat:

🪒

:razor:

🧾

:receipt:

🚗

:red_car:

🔴

:red_circle:

🧧

:red_envelope:

🦰

:red_haired:

🟥

:red_square:

😌

:relieved:

🔁

:repeat:

🔂

:repeat_one:

🚻

:restroom:

:rewind:

🦏

:rhino:

🦏

:rhinoceros:

🎀

:ribbon:

🍚

:rice:

🍙

:rice_ball:

🍘

:rice_cracker:

🎑

:rice_scene:

🤜

:right_fist:

💍

:ring:

🤖

:robot:

🤖

:robot_face:

🪨

:rock:

🚀

:rocket:

🤣

:rofl:

🙄

:roll_eyes:

🛼

:roller_skate:

🙄

:rolling_eyes:

🐓

:rooster:

🌹

:rose:

🚣

:rowboat:

🚣

:rowing_man:

🏃

:runner:

🏃

:running_man:

🧷

:safety_pin:

🦺

:safety_vest:

:sagittarius:

:sailboat:

🍶

:sake:

🥗

:salad:

🧂

:salt:

👡

:sandal:

🥪

:sandwich:

🎅

:santa:

🥻

:sari:

📡

:satellite:

😆

:satisfied:

🦕

:sauropod:

🎷

:saxophone:

🧣

:scarf:

🏫

:school:

🛴

:scooter:

🦂

:scorpion:

:scorpius:

😱

:scream:

🙀

:scream_cat:

🪛

:screwdriver:

📜

:scroll:

🦭

:seal:

💺

:seat:

🥈

:second_place:

🙈

:see_no_evil:

🌱

:seedling:

🤳

:selfie:

🦈

:shark:

🍧

:shaved_ice:

🐑

:sheep:

🐚

:shell:

🚢

:ship:

👕

:shirt:

💩

:shit:

🛍

:shopping:

🩳

:shorts:

🚿

:shower:

🦐

:shrimp:

🤷

:shrug:

🤢

:sick:

🛹

:skateboard:

💀

:skeleton:

🎿

:ski:

💀

:skull:

🦨

:skunk:

🛷

:sled:

😴

:sleeping:

🛌

:sleeping_bed:

😪

:sleepy:

🙁

:slight_frown:

🙂

:slight_smile:

🎰

:slot_machine:

🦥

:sloth:

😄

:smile:

😸

:smile_cat:

😃

:smiley:

😺

:smiley_cat:

😈

:smiling_imp:

😏

:smirk:

😼

:smirk_cat:

🚬

:smoking:

🐌

:snail:

🐍

:snake:

🤧

:sneeze:

🏂

:snowboarder:

:snowman:

🧼

:soap:

😭

:sob:

:soccer:

🧦

:socks:

🥎

:softball:

🔜

:soon:

🆘

:sos:

🔉

:sound:

🍝

:spaghetti:

🎇

:sparkler:

:sparkles:

🔈

:speaker:

🚤

:speedboat:

🧽

:sponge:

🥄

:spoon:

🏅

:sports_medal:

🕵

:spy:

🦑

:squid:

🌟

:star2:

:star:

🤩

:star_struck:

🌠

:stars:

🚉

:station:

🩺

:stethoscope:

🍲

:stew:

🛑

:stop_sign:

🍓

:strawberry:

🥙

:stuffed_pita:

🌻

:sunflower:

😎

:sunglasses:

🌅

:sunrise:

🦸

:superhero:

🦹

:supervillain:

🏄

:surfer:

🏄

:surfing_man:

🍣

:sushi:

🦢

:swan:

😓

:sweat:

💦

:sweat_drops:

😅

:sweat_smile:

🍠

:sweet_potato:

🏊

:swimmer:

🏊

:swimming_man:

🔣

:symbols:

🕍

:synagogue:

💉

:syringe:

🦖

:t_rex:

🏓

:table_tennis:

🌮

:taco:

🎉

:tada:

🥡

:takeout_box:

🫔

:tamale:

🍊

:tangerine:

:taurus:

🚕

:taxi:

🍵

:tea:

🫖

:teapot:

🧸

:teddy_bear:

🔭

:telescope:

🔟

:ten:

🎾

:tennis:

:tent:

🧪

:test_tube:

🤔

:thinking:

🥉

:third_place:

🩴

:thong_sandal:

🧵

:thread:

👎

:thumbdown:

👎

:thumbsdown:

👍

:thumbsup:

👍

:thumbup:

🎫

:ticket:

🐅

:tiger2:

🐯

:tiger:

😫

:tired_face:

🚽

:toilet:

🗼

:tokyo_tower:

🍅

:tomato:

🏻

:tone1:

🏼

:tone2:

🏽

:tone3:

🏾

:tone4:

🏿

:tone5:

👅

:tongue:

🧰

:toolbox:

🦷

:tooth:

🪥

:toothbrush:

🔝

:top:

🎩

:tophat:

🌪

:tornado:

🚜

:tractor:

🚆

:train2:

🚋

:train:

🚊

:tram:

🔱

:trident:

😤

:triumph:

🚎

:trolleybus:

🏆

:trophy:

🚚

:truck:

🎺

:trumpet:

🌷

:tulip:

🦃

:turkey:

🐢

:turtle:

📺

:tv:

💕

:two_hearts:

🈹

:u5272:

🈴

:u5408:

🈺

:u55b6:

🈯

:u6307:

🈶

:u6709:

🈵

:u6e80:

🈚

:u7121:

🈸

:u7533:

🈲

:u7981:

🈳

:u7a7a:

:umbrella:

😒

:unamused:

🔞

:underage:

🦄

:unicorn:

🦄

:unicorn_face:

🔓

:unlock:

🆙

:up:

🙃

:upside_down:

🧛

:vampire:

📼

:vhs:

📹

:video_camera:

🎮

:video_game:

🎻

:violin:

:virgo:

🌋

:volcano:

🏐

:volleyball:

🆚

:vs:

🖖

:vulcan:

🧇

:waffle:

🚶

:walking:

🚶

:walking_man:

:watch:

🤽

:water_polo:

🍉

:watermelon:

👋

:wave:

🚾

:wc:

😩

:weary:

💒

:wedding:

🐋

:whale2:

🐳

:whale:

:wheelchair:

🥃

:whisky:

:white_circle:

💮

:white_flower:

🦳

:white_haired:

🤍

:white_heart:

🥀

:wilted_rose:

🎐

:wind_chime:

🌬

:wind_face:

🪟

:window:

🍷

:wine_glass:

😉

:wink:

🐺

:wolf:

👩

:woman:

👒

:womans_hat:

🚺

:womens:

🪵

:wood:

🥴

:woozy_face:

🪱

:worm:

😟

:worried:

🔧

:wrench:

🤼

:wrestlers:

🤼

:wrestling:

:x:

🧶

:yarn:

🥱

:yawning_face:

💛

:yellow_heart:

💴

:yen:

🪀

:yo_yo:

😋

:yum:

🤪

:zany_face:

:zap:

🦓

:zebra:

🤐

:zipper_mouth:

🧟

:zombie:

💤

:zzz:

📢 🅰️ 🅱️ ⚖️ 🔔

☁️ 🕰️

  • Reference

🔗 heading