The Shulchan Aruch · Orach Chayim
אורח חיים תקכ״זOrach Chayim 527
Siman 527 of 697 in Orach Chayim — 24 se'ifim
הלכות יום טובLaws of the Festivals· siman 527
Se’if 1א׳
יוֹם טוֹב שֶׁחָל לִהְיוֹת בְּעֶרֶב שַׁבָּת, לֹא יְבַשֵּׁל בִּתְחִלָּה לְצֹרֶךְ שַׁבָּת בִּקְדֵרָה בִּפְנֵי עַצְמָהּ, אֲבָל מְבַשֵּׁל הוּא כַּמָּה קְדֵרוֹת לְיוֹם טוֹב וְאִם הוֹתִיר, הוֹתִיר לְשַׁבָּת; וְעַל יְדֵי עֵרוּב, מְבַשֵּׁל בִּתְחִלָּה לְשַׁבָּת. (פי' עִנְיַן הָעֵרוּב הוּא שֶׁיְּבַשֵּׁל וְיֹאפֶה מִיּוֹם טוֹב לְשַׁבָּת עִם מַה שֶּׁבִּשֵּׁל וְאָפָה כְּבָר מֵעֶרֶב יוֹם טוֹב לְשֵׁם שַׁבָּת, וְנִמְצָא שֶׁלֹּא הִתְחִיל מְלָאכָה בְּיוֹם טוֹב אֶלָּא גָּמַר אוֹתָהּ). הַגָּה: וּמֻתָּר לְהַנִּיחַ עֵרוּב זֶה אֲפִלּוּ סְפֵק חֲשֵׁכָה (מָרְדְּכַי סוֹף פֶּרֶק בַּמֶּה מַּדְלִיקִין).
1. The Laws of Eruv Tavshilin, 24 Seifim: If a holiday falls on Friday, one should not cook something for Shabbat in its own pot. One can cook many pots for the holiday and if he makes too much, the leftovers are for Shabbat. Using an eruv, one can cook for Shabbat. (Meaning that the point of the eruv is so that one can cook and bake on a holiday for Shabbat along with what was already baked or cooked for Shabbat before the holiday, so that he is not starting the work on the holiday but is just finishing it.) Rem"a: It is permitted to make the eruv even at twilight (Mordechai at the end of Chapter "Bameh Madlikin").
Se’if 2ב׳
עֵרוּב זֶה עוֹשִׂין אוֹתוֹ בְּפַת וְתַבְשִׁיל, וְאִם לֹא עֲשָׂאוֹ אֶלָּא מִתַּבְשִׁיל לְבַד, מֻתָּר.
2. This eruv consists of bread and a cooked item. If one only made it using a cooked item, it is permitted.
Se’if 3ג׳
שִׁעוּר תַּבְשִׁיל זֶה כַּזַּיִת, בֵּין לְאֶחָד בֵּין לַאֲלָפִים, בֵּין בִּתְחִלָּתוֹ בֵּין בְּסוֹפוֹ; הַגָּה: וְיֵשׁ מַצְרִיכִין לְכַתְּחִלָּה בְּפַת כַּבֵּיצָה (יְרוּשַׁלְמִי), וְכֵן נוֹהֲגִין לְכַתְּחִלָּה.
3. The measure of this cooked item must be a kezayit (olive's weight), whether [the eruv] is for one person or for a thousand, at all points of its existence. Rem"a: Some require the bread to be a kebeitzah (egg's weight) (Yerushalmi) and such is the practice, initially.
Shulchan Aruch, Orach Chayim — Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0